Onplayer exit specific vehicle[help]
#1

someone know how if someone exit a specific vehicle for ex it disappear (not respawn)
and kill racecheckpoint and stuff?
but what i want is on player exit that specific vehicle so plzplzpzlplz HELP!




Arshavin,
thanksbb.
Reply
#2

pawn Код:
new SpecialVehicle;
Declare a variable to store the vehicle ID.

pawn Код:
SpecialVehicle = AddStaticVehicle( ... or CreateVehicle( ...
Create the vehicle.

pawn Код:
public OnPlayerExitVehicle( playerid, vehicleid )
{
    if( vehicleid == SpecialVehicle ) // If the player exited SpecialVehicle
    {
        // Do something
    }
    return 1;
}
Reply
#3

if( vehicleid == SpecialVehicle ) // If the player exited SpecialVehicle
{
// Do something
}


THANKS FOR THIS PART <3333333333
Reply
#4

dunno it works but when i do get in this car and exit and get in another car and exit does same
but if i didnt enter this car and entered another car doesnt do it
so my prob is it works before i enter this car and when i enter this car and try enter another car does same and destroy it please help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)