How to use "DestroyVehicle" whitout player in vehicle?
#1

Hi all, i need help with the Callback "DestoyVehicle" Because I have succeded to make it work but only with GetPlayerVehicleID but I need to use it without player in the vehicle for my crusher system.

Here is the method I use:


Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/fb", true))
     	{
      	new Float:x, Float:y, Float:z;
	new idcar;
	idcar = GetVehiclePos(idcar, x, y, z);
	DestroyVehicle(idcar);
     	GameTextForPlayer(playerid, "Vehicule broyer!", 3500, 1);
        }
}
Tanks for you help.
Reply


Messages In This Thread
How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 18:01
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:08
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:16
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:20
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 19:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 20:38
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 21:11
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:13
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:33
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 21:55
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 22:47
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 23:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by ShihabSoft - 01.06.2017, 00:00
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 01.06.2017, 01:03
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 01.06.2017, 05:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 01.06.2017, 21:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JuzDoiT - 02.06.2017, 20:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 02.06.2017, 21:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 06.06.2017, 01:58

Forum Jump:


Users browsing this thread: 4 Guest(s)