View Single Post
Old 31/05/2017, 06:01 PM   #1
Little Clucker
Join Date: May 2017
Posts: 21
Reputation: 0
Post How to use "DestroyVehicle" whitout player in vehicle?

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);
     	GameTextForPlayer(playerid, "Vehicule broyer!", 3500, 1);
Tanks for you help.
tekass is offline   Reply With Quote