Player In Vehicle
#2

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.
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: 2 Guest(s)