08.05.2011, 23:43
PHP код:
public ChecarLife(playerid)
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(GetPlayerArmour(i) >= 1) return SetPlayerAttachedObject(i,5,19142,1,0.1,0.05,0.0);
else if(GetPlayerArmour(i) <= 0) return RemovePlayerAttachedObject(i,5);
}
return 1;
}