remove admin spawned cars
#1

Hi.

I was wandering if it was possible to make a /vehdestroy that will destroy all the admin spawned cars?
Here is the command to spawn them:
Код:
CMD:veh(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
		if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command-");
		new car, col1, col2, string[126];
		if(sscanf(params, "iii", car, col1, col2)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
		if(car < 400 || car > 611) return SendClientMessage(playerid, COLOR_GREY, "Vehicle number can't be below 400 or above 611!");
		if(col1 < 0 || col1 > 256) return SendClientMessage(playerid, COLOR_GREY, "Color number can't be below 0 or above 256!");
		new Float:X,Float:Y,Float:Z;
		GetPlayerPos(playerid, X,Y,Z);
		new carid = AddStaticVehicleEx(car, X+2,Y+2,Z+1, 0.0, col1, col2, 60000);
		format(string, sizeof(string), "Vehicle %d spawned.", carid);
		SendClientMessage(playerid, COLOR_GREY, string);
	}
	return 1;
}
Is it possible to make a command to destroy the vehicles that command creates? and if so How?

Thanks
Reply


Messages In This Thread
remove admin spawned cars - by Blademaster680 - 11.01.2014, 22:18
Re: remove admin spawned cars - by Ace155 - 11.01.2014, 22:31
Re: remove admin spawned cars - by Blademaster680 - 11.01.2014, 22:33
Re: remove admin spawned cars - by Tayab - 11.01.2014, 22:47
Re: remove admin spawned cars - by Jefff - 11.01.2014, 23:36
Re: remove admin spawned cars - by Blademaster680 - 12.01.2014, 12:09
Re: remove admin spawned cars - by Jefff - 12.01.2014, 13:08
Re: remove admin spawned cars - by Blademaster680 - 12.01.2014, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)