Advertisement
FamiliaSAMP

FILTERSCRIPT - SISTEMA DE VOZ [FAMILIASAMP.COM]

Jul 31st, 2015
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. /// FILTERSCRIPT - SISTEMA DE VOZ
  2. /// FAMILIASAMP.COM
  3.  
  4. /*
  5. Google sound or voice sound system by MORJAN please dont remove credits.
  6.  
  7. */
  8. #include <a_samp>
  9. #include <sscanf2>
  10. #include <zcmd>
  11. #if defined FILTERSCRIPT
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n--------------------------------------");
  16. print("by MORJAN");
  17. print("--------------------------------------\n");
  18. return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. #else
  27.  
  28. main()
  29. {
  30. print("\n----------------------------------");
  31. print("by MORJAN");
  32. print("----------------------------------\n");
  33. }
  34.  
  35. #endif
  36.  
  37. public OnGameModeInit()
  38. {
  39.  
  40. return 1;
  41. }
  42. CMD:sound(playerid,params[]) {
  43. #pragma unused params
  44. if(IsPlayerAdmin(playerid))
  45. {
  46. if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /sound [sound will play]");
  47. new string[128]; format(string, sizeof(string), "http://soundoftext.com/static/sounds/en/%s.mp3", params[0] );
  48. for(new i=0;i<MAX_PLAYERS;i++) PlayAudioStreamForPlayer(i,string);
  49. } else return SendClientMessage(playerid,0xFF0000AA,"You must be admin.");
  50. return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement