Quote:
Originally Posted by DavidJr
PHP Code:
RegisterHam(Ham_Weapon_Reload, "weapon_*", "fwd_Weapon_Reload");
PHP Code:
public fwd_Weapon_Reload(iEnt)
{
return HAM_SUPERCEDE;
}
weapon_* is your weapon entity.
|
THANK YOU!

Now I got all working with this code:
PHP Code:
RegisterHam(Ham_Weapon_Reload, "weapon_deagle", "fwd_Weapon_Reload");
public fwd_Weapon_Reload(iEnt)
{
set_task(0, "Message");
return HAM_SUPERCEDE
}
public Message(id)
{
client_print(id, print_center, "You don't need to recharge.")
}
PD: For some strange reason (I think because of the iEnt index) client_print doesn't work, it needs the set_task function.
Quote:
Originally Posted by simanovich
RTFM 
|
Sorry, I didn't know how to search about this.