Codigos

Radio Reais para RP/RPG

Nov 5th, 2012
1,713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1. #include <a_samp>
  2. public OnPlayerStateChange(playerid, newstate, oldstate)
  3. {
  4. new carid = GetPlayerVehicleID(playerid);
  5. if((carid <= 582) && (carid <= 488))
  6. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  7.     {
  8.         PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1346749");
  9.         SendClientMessage(playerid, -1, "{33FF00}Voce está a {FFFF00}2GB TalkShow!");
  10.     }
  11. if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
  12.     {
  13.         StopAudioStreamForPlayer(playerid);
  14.     }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment