Detect a player exiting a vehicle
#4

Quote:
Originally Posted by cessil
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
              SetPVarInt(playerid,"vehicleid",GetPlayerVehicleID(playerid));
        }
        if(oldstate == PLAYER_STATE_DRIVER)
    {
              //now you have them exiting the car as a driver and the last vehicle ID
        }
}
So I'll have to save every player's vehicleid..
Thanks!
Reply


Messages In This Thread
Detect a player exiting a vehicle - by Nameless303 - 28.12.2010, 11:31
Re: Detect a player exiting a vehicle - by Crime Life ROLEPLAY - 28.12.2010, 11:42
Re: Detect a player exiting a vehicle - by cessil - 28.12.2010, 11:42
Re: Detect a player exiting a vehicle - by Nameless303 - 28.12.2010, 11:52

Forum Jump:


Users browsing this thread: 2 Guest(s)