Player In Vehicle
#3

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_ONFOOT && oldstate == PLAYER_DRIVER)
            // Stop the radio
   else if(newstate == PLAYER_DRIVER && oldstate == PLAYER_ONFOOT)
          // Start it
   return 1;
}
I didn't remember the states, so check them on the wiki again.
PLAYER_STATE_ONFOOT and PLAYER_STATE_DRIVER
Reply


Messages In This Thread
Player In Vehicle - by CurlyPwn - 13.05.2013, 08:36
Re: Player In Vehicle - by RajatPawar - 13.05.2013, 08:52
Re: Player In Vehicle - by CNRLIFE - 13.05.2013, 10:27
Re: Player In Vehicle - by CurlyPwn - 13.05.2013, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)