Delete spawned cars CMD?
#1

Hello I was wondering how to do a command that would remove all vehicles that are spawned with this command:
Code:
CMD:veh(playerid, params[]) {

	new vehid,vehicle,engine,lights,alarm,doors,bonnet,boot,objective;
	if(PlayerInfo[playerid][pLevel] < 1) return error
	if(sscanf(params, "i", vehid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /veh <carid>");
	else if (vehid < 400 || vehid > 611) SendClientMessage(playerid, COLOR_GREY, "[ERROR] Invalid car id! [ Car ID's range from 400 - 611 ]");
	else
	{
		new Float:x, Float:y, Float:z;
		GetPlayerPos(playerid, x, y, z);
		vehicle = CreateVehicle(vehid, x + 3, y, z, 0, 0,0, -1);
		GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
		SetVehicleParamsEx(vehid,1,lights,alarm,doors,bonnet,boot,objective);
		ChangeVehicleColor(vehicle, 219, 251);
		SetVehicleNumberPlate(vehicle,"{FF8000}BHaulers");
		PutPlayerInVehicle(playerid,vehicle,0);
		SendClientMessage(playerid, COLOR_GREEN, "Car spawned!");
	}
	return 1;
}
Reply


Messages In This Thread
Delete spawned cars CMD? - by wumpyc - 26.07.2013, 01:21
Re: Delete spawned cars CMD? - by -Prodigy- - 26.07.2013, 02:05
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 03:14
Re: Delete spawned cars CMD? - by [ABK]Antonio - 26.07.2013, 03:21
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 03:34
Re: Delete spawned cars CMD? - by kartik - 26.07.2013, 05:47
Re: Delete spawned cars CMD? - by ThePhenix - 26.07.2013, 06:13
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 06:23
Re: Delete spawned cars CMD? - by kartik - 26.07.2013, 06:33
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 06:37

Forum Jump:


Users browsing this thread: 1 Guest(s)