SA-MP Forums Archive
Delete Car Command Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Delete Car Command Help (/showthread.php?tid=127712)



Delete Car Command Help - Smiths - 14.02.2010

Is it posible to make a command to delete a vehicle?



Re: Delete Car Command Help - Smiths - 14.02.2010

Quote:
Originally Posted by Smiths
Is it posible to make a command to delete a vehicle?
i got this code but it doesn't work ...

Код:
	if(strcmp(cmd, "/delcar", true) == 0) {
		SendPlayerFormattedText(playerid,"Vehicle Deleted,0);
  return 1;
}
euh srry for the double posting...


Re: Delete Car Command Help - (Jeff) - 14.02.2010

Maybe GetPlayerVehicleId
Then removeplayerfromvehicle
Then Explode the car some how XD


Re: Delete Car Command Help - woot - 14.02.2010

pawn Код:
if(!strcmp(cmdtext, "/delcar", true)) return DestroyVehicle(GetPlayerVehicleID(playerid));