Advertisement
razvan_xd

Untitled

Oct 20th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.33 KB | None | 0 0
  1. public OnPlayerStateChange ( playerid, newstate, oldstate )
  2. {
  3.     switch ( newstate )
  4.     {
  5.         case PLAYER_STATE_DRIVER, PLAYER_STATE_PASSENGER:
  6.             PlayAudioStreamForPlayer ( playerid, "URL-RADIO" );
  7.     }
  8.     switch ( oldstate )
  9.     {
  10.         case PLAYER_STATE_DRIVER, PLAYER_STATE_PASSENGER:
  11.             StopAudioStreamForPlayer ( playerid );
  12.     }
  13.     return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement