21.09.2016, 12:37
Hey....
i made a function which checks through all players if the player armour is >= 100, then do stuff...
Has errors (ye ye).
i made a function which checks through all players if the player armour is >= 100, then do stuff...
PHP код:
public CheckPlayerArmour()
{
foreach(Player, i)
{
new Float:parmour[MAX_PLAYERS];
GetPlayerArmour(i, parmour);
if(parmour(i) >= 100)
{
// stuff here
adminchat(COLOR_RED, string);
}
}
}