Guest User

Untitled

a guest
Mar 2nd, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #include <a_samp>
  2. public OnPlayerStateChange(playerid, newstate, oldstate)
  3. {
  4. new vehid = GetPlayerVehicleID(playerid),
  5. model = GetVehicleModel(vehid);
  6. if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  7. {
  8. switch(model) // Modelos dos veiculos da policia/exercito/FBI/Swat
  9. {
  10. case 407, 427, 432, 601, 599, 598, 597, 596, 528, 523, 497, 490, 433:
  11. {
  12. PlayAudioStreamForPlayer(playerid, "http://relay.radioreference.com:80/il_chicago_police2");
  13. }
  14. case 488, 582: //Modelos dos veiculos dos reporters
  15. {
  16. PlayAudioStreamForPlayer(playerid, "http://184.154.48.106:9000");
  17. }
  18. case 417, 425, 447, 460, 469, 476, 487, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593 : //Modelos de aeronaves
  19. {
  20. PlayAudioStreamForPlayer(playerid, "http://ewr2.liveatc.net/sbmt");
  21. }
  22. }
  23. }
  24. if(oldstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_ONFOOT)
  25. {
  26. StopAudioStreamForPlayer(playerid);
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment