08.05.2011, 22:26
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,0.0,0.0,0.0);
else if(GetPlayerArmour(i) <= 0) return RemovePlayerAttachedObject(i,5);
}
return 1;
}