Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

How to use "DestroyVehicle" without player in vehicle?

$
0
0
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:


Code:

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 your help.

PS: Sorry for my bad english, im french...

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>