/respawncars problem
#1

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

		if(radius < 1 || radius > 500)
		{
			SendClientMessageEx(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 500!");
			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;
}
How to make something like:
/respawncars will respawn every cars in San Andreas that means i don't want the radius.

And how to make something like if i do /respawncars while someone in car then that car won't respawn. that mean:

/respawncars will just respawn which car is not using.
Reply


Messages In This Thread
/respawncars problem - by Tuntun - 17.09.2014, 17:47
Re: /respawncars problem - by AMouldyLemon - 17.09.2014, 18:16
Re: /respawncars problem - by Tuntun - 17.09.2014, 19:31
Re: /respawncars problem - by Ox1gEN - 17.09.2014, 19:43
Re: /respawncars problem - by Tuntun - 17.09.2014, 19:52
Re: /respawncars problem - by Abagail - 17.09.2014, 20:02
Re: /respawncars problem - by Tuntun - 17.09.2014, 20:16
Re: /respawncars problem - by Jefff - 17.09.2014, 20:18
Re: /respawncars problem - by Tuntun - 17.09.2014, 20:20
Re: /respawncars problem - by Jefff - 17.09.2014, 20:30

Forum Jump:


Users browsing this thread: 1 Guest(s)