Onplayer exit specific vehicle[help]
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)