04.09.2009, 00:54
Sup,
I got a Respawn all cars command from a good friend of mine working on his script. And it respawns all the cars. Even if they have ppl in it. So can you guys fix that? I dont no how.
Heres the code:
Please Help,
Rick
I got a Respawn all cars command from a good friend of mine working on his script. And it respawns all the cars. Even if they have ppl in it. So can you guys fix that? I dont no how.
Heres the code:
Код:
if(strcmp(cmdtext, "/respawnallcars", true) == 0 || strcmp(cmdtext, "/rac", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdminlevel] < 1)
{
return 0;
}
for(new car = 1; car <= 268; car++)
{
SetVehicleToRespawn(car);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] All cars respawned by %s.", sendername);
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}
Rick

