17.06.2012, 18:37
Did you try and think that the reason was because it was in a loop?
change to:
Try now.
pawn Код:
command(rac, playerid, params[])
{
new string[128];
if(Player[playerid][AdminLevel] >= 1 || Player[playerid][Moderator] >= 1)
for(new car = 1; car <= 268; car++)
{
if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
format(string, sizeof(string), "SERVER ACTION: All unused cars respawned by %s", GetName(playerid));
SendClientMessageToAll(RED, string);
}
return 1;
}
pawn Код:
command(rac, playerid, params[])
{
new string[128];
if(Player[playerid][AdminLevel] >= 1 || Player[playerid][Moderator] >= 1)
for(new car = 1; car <= 268; car++)
{
if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
}
format(string, sizeof(string), "SERVER ACTION: All unused cars respawned by %s", GetName(playerid));
SendClientMessageToAll(RED, string);
return 1;
}