21.02.2009, 19:37
I've created this cmd , but i don't know why he didn't respawn all my 500's cars
pawn Код:
if (strcmp(cmdtext, "/rac", true) == 0 || strcmp(cmdtext, "/respawnallcars", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid,UNKNOWN_CMD," All cars respawned !");
for(new i = 0; i < 500; i++)
{
SetVehicleToRespawn(i);
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE,ADMIN_TEXT);
return 1;
}
}