18.05.2011, 21:19
pawn Код:
public ChecarLife(playerid)
{
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(GetPlayerArmour(i) > 0)
{
SetPlayerAttachedObject( i, 5, 19142, 1, 0.100563, 0.056516, 0.003794, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
return 1;
}
else if(GetPlayerArmour(i) <= 0)
{
RemovePlayerAttachedObject(i,5);
return 1;
}
}
return 1;
}