15.09.2012, 14:24
Quote:
Voce estб colocando esse 'check' na callback OnPlayerUpdate?
|
PHP код:
SetTimer("VerColete", 1000, true);
PHP код:
forward VerColete(playerid);
public VerColete(playerid)
{
new Float:colete;
GetPlayerArmour(playerid, colete);
if(colete >= 1)
{
SetPlayerAttachedObject(playerid,1,373,1,0.33,-0.029,-0.15,65,25,35);
}
else
{
RemovePlayerAttachedObject(playerid, 1);
}
return 1;
}
PHP код:
RemovePlayerAttachedObject(playerid, 1);
PHP код:
for(new dj = 0; dj < MAX_PLAYERS; dj++)
{
RemovePlayerAttachedObject(dj, 1);
}