How to destroy a vehicle? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to destroy a vehicle? (
/showthread.php?tid=402023)
How to destroy a vehicle? -
ShawtyyMacJunior - 24.12.2012
Is there a system to where i can destroy a vehicle by carid and/or destroy the vehicle that person is in?
Re: How to destroy a vehicle? -
[CG]Milito - 24.12.2012
pawn Код:
public OnGameModeInit(playerid)
{
myvehicle = CreateVehicle(blah,blah,blah);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/destroyveh", true) == 0)
{
DestroyVehicle(myvehicle);
return 1;
}
return 0;
}
AW: How to destroy a vehicle? -
Blackazur - 24.12.2012
Код:
DestroyVehicle(veh);
But then do: