13.06.2013, 08:00
You should hook the function.
add this code in a include or top of the script.
@daemon3304, You clear don't understand what he meant. You just made a command that set player health to 99.
add this code in a include or top of the script.
pawn Код:
stock SetPlayerArmourEx(playerid,Float:amount)
{
if(amount > 99.0) amount = 99.0;
return SetPlayerArmour(playerid,amount);
}
#if defined _ALS_SetPlayerArmour
#undef SetPlayerArmour
#else
#define _ALS_SetPlayerArmour
#endif
#define SetPlayerArmour SetPlayerArmourEx
@daemon3304, You clear don't understand what he meant. You just made a command that set player health to 99.