Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**********************
- *FS uradio: Kizla* *
- *Zadrzite creditse :) *
- ***********************/
- #define FILTERSCRIPT
- #include <a_samp>
- //Procesori komandi
- #define ZCMD 0 // procesor komandi: ZCMD (Zeex).
- #define DCMD 1 // procesor komandi: DCMD (DracoBlue).
- #define STRCMP 2 // procesor komandi: STRCMP (SA:MP)
- #define PROCESOR_KOMANDI ZCMD // Koji procesor komandi ce koristit skripta. Dostupni: ZCMD,DCMD,STRCMP.
- #define SAMO_ADMINI true // true = Jedino RCON Administratori ce moci koristiti /oruzja | netrue = Svi ce moci koristiti /oruzja komandu
- //Dijalog
- #define DIALOGID 7000 // Dijalog ID koji ce skripta koristiti! Promijeni ako je potrebno
- //Biranje procesora
- #if PROCESOR_KOMANDI == ZCMD // Zasluge za Zeex-a
- #include <zcmd>
- #endif
- #if PROCESOR_KOMANDI == DCMD // Zasluge za DracoBlue-a
- #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
- #endif
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Kizla Oruzje sistem ==> UCITANO");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Kizla Oruzje sistem ==> UGASENO");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- #if PROCESOR_KOMANDI == ZCMD
- CMD:oruzja(playerid, params[])
- {
- #if SAMO_ADMINI == true
- if(!IsPlayerAdmin(playerid)) return 0;
- #endif
- 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");
- return 1;
- }
- #endif
- #if PROCESOR_KOMANDI == DCMD
- dcmd_oruzja(playerid, params[])
- {
- #if SAMO_ADMIN == true
- if(!IsPlayerAdmin(playerid)) return 0;
- #endif
- 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");
- return 1;
- }
- #endif
- #if PROCESOR_KOMANDI != ZCMD
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- #if PROCESOR_KOMANDI == DCMD
- dcmd(oruzja, 7, cmdtext);
- #else
- if(!strcmp(cmdtext, "/oruzja"))
- {
- #if SAMO_ADMIN == true
- if(!IsPlayerAdmin(playerid)) return 0;
- #endif
- 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");
- }
- #endif
- return 0;
- }
- #endif
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOGID && response) // Oruzja
- {
- switch(listitem)
- {
- case 0: GivePlayerWeapon(playerid, 1, 500); // Bokser
- case 1: GivePlayerWeapon(playerid, 2, 500); // Golf Palica
- case 2: GivePlayerWeapon(playerid, 3, 500);// Policijska Palica
- case 3: GivePlayerWeapon(playerid, 4, 500); // Noz
- case 4: GivePlayerWeapon(playerid, 5, 500); // Bejzbol Palica
- case 5: GivePlayerWeapon(playerid, 6, 500); // Lopata
- case 6: GivePlayerWeapon(playerid, 7, 500); // Biljarski stap
- case 7: GivePlayerWeapon(playerid, 8, 500); // Mac
- case 8: GivePlayerWeapon(playerid, 9, 500); // Motorka
- case 9: GivePlayerWeapon(playerid, 12, 500); // Dildo
- case 10: GivePlayerWeapon(playerid, 16, 500); // Granata
- case 11: GivePlayerWeapon(playerid, 17, 500); // Dimna bomba
- case 12: GivePlayerWeapon(playerid, 18, 500); // Molotov
- case 13: GivePlayerWeapon(playerid, 22, 500); // 9mm
- case 14: GivePlayerWeapon(playerid, 23, 500); // Priguseni 9mm
- case 15: GivePlayerWeapon(playerid, 24, 500); //Desert Eagle
- case 16: GivePlayerWeapon(playerid, 26, 500); //Sawn-off
- case 17: GivePlayerWeapon(playerid, 27, 500); //Combat
- case 18: GivePlayerWeapon(playerid, 28, 500); //UZI
- case 19: GivePlayerWeapon(playerid, 29, 500); //MP5
- case 20: GivePlayerWeapon(playerid, 30, 500); //AK-47
- case 21: GivePlayerWeapon(playerid, 31, 500); //M4
- case 22: GivePlayerWeapon(playerid, 32, 500); //Tec-9
- case 23: GivePlayerWeapon(playerid, 34, 500); //Sniper
- case 24: GivePlayerWeapon(playerid, 35, 500); //Bazuka
- case 25: GivePlayerWeapon(playerid, 38, 500); //Strojnica
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement