I'm trying to get at the time the player to select a class win some specific human attributes such as vest, but I'm having problems with the parameters can someone help me?
PHP Code:
/*================================================================================
----------------------------------
-*- [ZP] Class: Human: Raptor -*-
----------------------------------
This plugin is part of Zombie Plague Mod and is distributed under the
terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
================================================================================*/
#include <amxmodx>
#include <zp50_class_human>
// Raptor Human Attributes
new const humanclass2_name[] = "Human raptor"
new const humanclass2_info[] = "HP-- Speed+ Gravity+"
new const humanclass2_models[][] = { "leet" }
const humanclass2_health = 50
const Float:humanclass2_speed = 1.2
const Float:humanclass2_gravity = 1.2
new g_HumanClassID
public plugin_precache()
{
register_plugin("[ZP] Class: Human: Raptor", ZP_VERSION_STRING, "ZP Dev Team")
g_HumanClassID = zp_class_human_register(humanclass2_name, humanclass2_info, humanclass2_health, humanclass2_speed, humanclass2_gravity)
new index
for (index = 0; index < sizeof humanclass2_models; index++)
zp_class_human_register_model(g_HumanClassID, humanclass2_models[index])
}
public zp_fw_class_human_select_pre(id, attacker)
{
set_user_armor(id, 50)
}
PHP Code:
public zp_fw_class_human_select_pre(id, attacker)
{
set_user_armor(id, 50)
}
Thanks.