/rac(Respawn all cars) it works but I wanna add smth simple to it
#2

Код:
CMD:rac(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 2)
	{
		new string[128];
		new bool:unwanted[MAX_VEHICLES];
		for(new player=0; player<MAX_PLAYERS; player++)
     	{
            if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
     	}
		for(new car = 1; car <= 1850; car++)
		{
			if(!unwanted[car]) SetVehicleToRespawn(car);
		}
		SendClientMessageEx(playerid, COLOR_GREY, "You have respawned all unused vehicles.");
		format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just respawned all unused cars.", GetPlayerNameEx(playerid));
		ABroadCast(COLOR_YELLOW, string, 1);
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}
Reply


Messages In This Thread
/rac(Respawn all cars) it works but I wanna add smth simple to it - by Guitar - 22.08.2012, 00:37
Re: /rac(Respawn all cars) it works but I wanna add smth simple to it - by Akira297 - 22.08.2012, 01:06
Re: /rac(Respawn all cars) it works but I wanna add smth simple to it - by Guitar - 22.08.2012, 01:22
Re: /rac(Respawn all cars) it works but I wanna add smth simple to it - by Akira297 - 22.08.2012, 01:23
Re: /rac(Respawn all cars) it works but I wanna add smth simple to it - by Guitar - 22.08.2012, 01:29

Forum Jump:


Users browsing this thread: 3 Guest(s)