Respawn all cars
#1

I want to make so all cars in in the server respawns how do i change that?

Код:
CMD:respawncars(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 3)
	{
		new string[128], radius;
		if(sscanf(params, "d", radius)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /respawncars [radius]");

		if(radius < 1 || radius > 40)
		{
			SendClientMessageEx(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 41!");
			return 1;
		}
		RespawnNearbyVehicles(playerid, radius);
		format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius);
		SendClientMessageEx(playerid, COLOR_GREY, string);
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}
Reply


Messages In This Thread
Respawn all cars - by raamiix - 28.03.2013, 12:17
Re: Respawn all cars - by RenovanZ - 28.03.2013, 13:07
Re: Respawn all cars - by raamiix - 28.03.2013, 13:16
Re: Respawn all cars - by RenovanZ - 28.03.2013, 13:21
Re: Respawn all cars - by Patrick - 28.03.2013, 13:23
Re: Respawn all cars - by raamiix - 28.03.2013, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)