Vreau ca la fiecare clasa sa le dau armura, deja voi seta eu imi aratati doar la una
1 human - 10 armura
2 human - 20 armura
3 human - 30 armura si tot asa
deci asa
/*================================================================================
Human Test
================================================================================*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <zombiexp>
// Human Attributes
new const hclass_name[] = { "Soldier" } // name
new const hclass_info[] = { "Power+" } // description
new const hclass_model[] = { "" } // model
new const hclass_weapons[] = { } // weapons
const hclass_health = 320 // health
const hclass_speed = 260 // speed
const Float:hclass_gravity = 0.95 // gravity
const hclass_level = 2 // level required to use
// Class IDs
new g_hclassid
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
new registerText[32]
formatex( registerText, sizeof registerText - 1, "[ZPXP] %s human", hclass_name)
register_plugin(registerText, "1.0", "N3messys")
// Register the new class and store ID for reference
g_hclassid = zpxp_register_human_class(hclass_name, hclass_info, hclass_model, hclass_weapons, hclass_health, hclass_speed, hclass_gravity, hclass_level)
if(g_hclassid == -1)
{
server_print("[ZPXP] You have not properly setup your Zombie XP Mod.");
}
}
// User Infected forward
public zp_user_infected_post(id, infector, nemesis)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;
// Undo any settings we have saved here
}
public zp_user_humanized_post(id)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;
// User turned human
if (zp_get_user_survivor(id) == 1)
{
// He's survivor, remove any changes made in the plugin
zp_user_infected_post(id, 0, 0)
} else {
zp_round_started_human(id)
}
}
//This is a forward from zpxp, as opposed to ZPs round_start (which is when infection begins) this is the true beginning of the round
public zp_round_started_human(id)
{
if (zp_get_user_human_class(id) != g_hclassid) return;
// Set our human's powers!
}
zombie xp human armura
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
-
- Membru, skill 0
- Posts: 51
- Joined: 26 Mar 2017, 21:58
- Detinator Steam: Da
- Detinator server CS: ZP.CSBLACKDEVIL.COM
- SteamID: dannyel1998
- Fond eXtream: 0
..:: ZP.CSBLACKDEVIL.COM # 178.32.241.8:27015 # WWW.CSBLACKDEVIL.COM ::.
https://www.gametracker.com/server_info ... 1.8:27015/
https://www.gametracker.com/server_info ... 1.8:27015/