Help with RAC Command
#1

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:

Код:
			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;
	}
Please Help,

Rick
Reply


Messages In This Thread
Help with RAC Command - by Rick_Jones - 04.09.2009, 00:54
Re: Help with RAC Command - by brett7 - 04.09.2009, 02:49
Re: Help with RAC Command - by Rick_Jones - 04.09.2009, 20:00
Re: Help with RAC Command - by Clavius - 04.09.2009, 20:45
Re: Help with RAC Command - by Rick_Jones - 05.09.2009, 02:01
Re: Help with RAC Command - by bubka3 - 05.09.2009, 02:41
Re: Help with RAC Command - by Clavius - 05.09.2009, 06:21

Forum Jump:


Users browsing this thread: 1 Guest(s)