Destroyveh command - 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: Destroyveh command (
/showthread.php?tid=76238)
Destroyveh command -
Marcus Drake - 03.05.2009
Hello again.
I have hit a brick wall.
Unfortunatly, my coing skills don't go as good as this, here's what I need.
- When I spawn a car, in-game (/veh) I want to be able to remove that one car, when I'm in it.
- I would like the command to be /destroyveh
Thats all I need for now, I thank the person that helps me with this.
Marcus
Re: Destroyveh command -
Weirdosport - 03.05.2009
To destroy the vehicle the player is in?
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
DestroyVehicle(GetPlayerVehicleID(playerid);
}
This is very basic, and will only work with CreateVehicle vehicles. It will not destroy AddStaticVehicle vehicles.
NOTE: I made this here, I wouldn't be surprised if there was a spelling mistake.
Re: Destroyveh command -
Marcus Drake - 04.05.2009
I can't seem to get that to work,
Any one else?
Re: Destroyveh command -
HB - 04.05.2009
Quote:
Originally Posted by Weirdosport
NOTE: I made this here, I wouldn't be surprised if there was a spelling mistake.
|
You forgot a ")" to be precise.
Thats also the solution, add a ")" so the opened "(" things are equal to the closed ones.