Advertisement
Guest User

Untitled

a guest
Jul 14th, 2011
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. /**********************
  2. *FS uradio: Kizla* *
  3. *Zadrzite creditse :) *
  4. ***********************/
  5. #define FILTERSCRIPT
  6.  
  7. #include <a_samp>
  8. //Procesori komandi
  9. #define ZCMD 0 // procesor komandi: ZCMD (Zeex).
  10. #define DCMD 1 // procesor komandi: DCMD (DracoBlue).
  11. #define STRCMP 2 // procesor komandi: STRCMP (SA:MP)
  12. #define PROCESOR_KOMANDI ZCMD // Koji procesor komandi ce koristit skripta. Dostupni: ZCMD,DCMD,STRCMP.
  13. #define SAMO_ADMINI true // true = Jedino RCON Administratori ce moci koristiti /oruzja | netrue = Svi ce moci koristiti /oruzja komandu
  14. //Dijalog
  15. #define DIALOGID 7000 // Dijalog ID koji ce skripta koristiti! Promijeni ako je potrebno
  16. //Biranje procesora
  17. #if PROCESOR_KOMANDI == ZCMD // Zasluge za Zeex-a
  18. #include <zcmd>
  19. #endif
  20. #if PROCESOR_KOMANDI == DCMD // Zasluge za DracoBlue-a
  21. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  22. #endif
  23.  
  24.  
  25. public OnFilterScriptInit()
  26. {
  27. print("\n--------------------------------------");
  28. print(" Kizla Oruzje sistem ==> UCITANO");
  29. print("--------------------------------------\n");
  30. return 1;
  31. }
  32.  
  33. public OnFilterScriptExit()
  34. {
  35. print("\n--------------------------------------");
  36. print(" Kizla Oruzje sistem ==> UGASENO");
  37. print("--------------------------------------\n");
  38. return 1;
  39. }
  40.  
  41. public OnPlayerConnect(playerid)
  42. {
  43. return 1;
  44. }
  45.  
  46. public OnPlayerDisconnect(playerid, reason)
  47. {
  48. return 1;
  49. }
  50.  
  51. #if PROCESOR_KOMANDI == ZCMD
  52. CMD:oruzja(playerid, params[])
  53. {
  54. #if SAMO_ADMINI == true
  55. if(!IsPlayerAdmin(playerid)) return 0;
  56. #endif
  57. ShowPlayerDialog(playerid,DIALOGID,DIALOG_STYLE_LIST,"Kupnja Oruzja","Bokser\nGolf Palica\nPolicijska Palica\nNoz\nBejzbol palica\nLopata\nBiljarski stap\nMac\nMotorka\nDildo\nGranata\nDimna bomba\nMolotov\n9mm\nPriguseni 9mm\nDesert Eagle\nSawn-off\nCombat\nUZI\nMP5\nAK-47\nM4\nTec9\nSniper\nBazuka\nStrojnica","Kupi", "Odustani");
  58. return 1;
  59. }
  60. #endif
  61. #if PROCESOR_KOMANDI == DCMD
  62. dcmd_oruzja(playerid, params[])
  63. {
  64. #if SAMO_ADMIN == true
  65. if(!IsPlayerAdmin(playerid)) return 0;
  66. #endif
  67. ShowPlayerDialog(playerid,DIALOGID,DIALOG_STYLE_LIST,"Kupnja Oruzja","Bokser\nGolf Palica\nPolicijska Palica\nNoz\nBejzbol palica\nLopata\nBiljarski stap\nMac\nMotorka\nDildo\nGranata\nDimna bomba\nMolotov\n9mm\nPriguseni 9mm\nDesert Eagle\nSawn-off\nCombat\nUZI\nMP5\nAK-47\nM4\nTec9\nSniper\nBazuka\nStrojnica","Kupi", "Odustani");
  68. return 1;
  69. }
  70. #endif
  71. #if PROCESOR_KOMANDI != ZCMD
  72. public OnPlayerCommandText(playerid, cmdtext[])
  73. {
  74. #if PROCESOR_KOMANDI == DCMD
  75. dcmd(oruzja, 7, cmdtext);
  76. #else
  77. if(!strcmp(cmdtext, "/oruzja"))
  78. {
  79. #if SAMO_ADMIN == true
  80. if(!IsPlayerAdmin(playerid)) return 0;
  81. #endif
  82. ShowPlayerDialog(playerid,DIALOGID,DIALOG_STYLE_LIST,"Kupnja Oruzja","Bokser\nGolf Palica\nPolicijska Palica\nNoz\nBejzbol palica\nLopata\nBiljarski stap\nMac\nMotorka\nDildo\nGranata\nDimna bomba\nMolotov\n9mm\nPriguseni 9mm\nDesert Eagle\nSawn-off\nCombat\nUZI\nMP5\nAK-47\nM4\nTec9\nSniper\nBazuka\nStrojnica","Kupi", "Odustani");
  83. }
  84. #endif
  85. return 0;
  86. }
  87. #endif
  88.  
  89. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  90. {
  91. if(dialogid == DIALOGID && response) // Oruzja
  92. {
  93. switch(listitem)
  94. {
  95. case 0: GivePlayerWeapon(playerid, 1, 500); // Bokser
  96. case 1: GivePlayerWeapon(playerid, 2, 500); // Golf Palica
  97. case 2: GivePlayerWeapon(playerid, 3, 500);// Policijska Palica
  98. case 3: GivePlayerWeapon(playerid, 4, 500); // Noz
  99. case 4: GivePlayerWeapon(playerid, 5, 500); // Bejzbol Palica
  100. case 5: GivePlayerWeapon(playerid, 6, 500); // Lopata
  101. case 6: GivePlayerWeapon(playerid, 7, 500); // Biljarski stap
  102. case 7: GivePlayerWeapon(playerid, 8, 500); // Mac
  103. case 8: GivePlayerWeapon(playerid, 9, 500); // Motorka
  104. case 9: GivePlayerWeapon(playerid, 12, 500); // Dildo
  105. case 10: GivePlayerWeapon(playerid, 16, 500); // Granata
  106. case 11: GivePlayerWeapon(playerid, 17, 500); // Dimna bomba
  107. case 12: GivePlayerWeapon(playerid, 18, 500); // Molotov
  108. case 13: GivePlayerWeapon(playerid, 22, 500); // 9mm
  109. case 14: GivePlayerWeapon(playerid, 23, 500); // Priguseni 9mm
  110. case 15: GivePlayerWeapon(playerid, 24, 500); //Desert Eagle
  111. case 16: GivePlayerWeapon(playerid, 26, 500); //Sawn-off
  112. case 17: GivePlayerWeapon(playerid, 27, 500); //Combat
  113. case 18: GivePlayerWeapon(playerid, 28, 500); //UZI
  114. case 19: GivePlayerWeapon(playerid, 29, 500); //MP5
  115. case 20: GivePlayerWeapon(playerid, 30, 500); //AK-47
  116. case 21: GivePlayerWeapon(playerid, 31, 500); //M4
  117. case 22: GivePlayerWeapon(playerid, 32, 500); //Tec-9
  118. case 23: GivePlayerWeapon(playerid, 34, 500); //Sniper
  119. case 24: GivePlayerWeapon(playerid, 35, 500); //Bazuka
  120. case 25: GivePlayerWeapon(playerid, 38, 500); //Strojnica
  121. }
  122. return 1;
  123. }
  124. return 0;
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement