Destroyveh command
#1

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
Reply
#2

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.
Reply
#3

I can't seem to get that to work,
Any one else?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)