Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. new URLMusic[256]
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35. // Don't use these lines if it's a filterscript
  36. SetGameModeText("Blank Script");
  37. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  38. return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43. return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  49. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  51. return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56. {
  57. PlayAudioStreamForPlayer(playerid, URLMusic);
  58. SendClientMessage(playerid, grey, ":???? ?????? ????º? ???? ?????? ?????º?");
  59. SendClientMessage(playerid, red, "/Saudio - ??????, /Play - ??????");
  60. }
  61. return 1;
  62. }
  63.  
  64. public OnPlayerText(playerid, text[])
  65. {
  66. if(!strcmp(cmdtext, "/Amusic", true))
  67. {
  68. if(AviiiLevel(playerid) < 14) return SendClientMessage(playerid, -1, "{FF0000}Error Command.");
  69. return ShowPlayerDialog(playerid,348,DIALOG_STYLE_INPUT,"????? ?????º?",":??? ???? ?? ????? ???? ????? ??????","?????","?????");
  70. }
  71.  
  72. if(!strcmp(cmdtext, "/AMusicStop", true))
  73. {
  74. for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) StopAudioStreamForPlayer(i);
  75. format(str,sizeof(str), ".????º ?? ?????º? ??? ???? %s ?????? ***", GetName(playerid));
  76. return SendClientMessageToAll(-1, str);
  77. }
  78. return 1;
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement