21.09.2012, 04:38
Isto deve resolver o seu problema .
Coloque :
Espero ter ajudado .
Coloque :
pawn Код:
//No OnGameModeInit:
SetTimer("ColocarColete", 1000, true);
//E, no Final do GM:
forward ColocarColete();
public ColocarColete()
{
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(!IsPlayerConnected(x) | !IsACop(x)) continue;
new Float:TotalColete;
GetPlayerArmour(x, TotalColete);
if(TotalColete > 0.0) SetPlayerAttachedObject(x, 4, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
else RemovePlayerAttachedObject(x, 4);
}
return true;
}
Espero ter ajudado .