Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Komande sistem by Skorpija
- // ============================== { includes } ============================== //
- #include < a_samp >
- #include < YSI\y_commands >
- #include < YSI\y_ini >
- #include < fdialog >
- // =============================== { colors } =============================== //
- #define BELA "{FFFFFF}"
- #define CRVENA "{F81414}"
- #define srwboja "{841BAC}"
- // =============================== ========== =============================== //
- // ============================== { script } ================================ //
- #define SPD ShowPlayerDialog
- enum pInfo
- {
- pPosao,
- pClan,
- pLider,
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- //================================= { Define } ============================== //
- #define POSAO_NEMAPOSAO 0
- #define POSAO_BUSVOZAC 1
- #define POSAO_KOSACTRAVE 2
- #define POSAO_MEHANICAR 3
- #define POSAO_POSTAR 4
- #define POSAO_KOMUNALAC 5
- #define POSAO_GRADJEVINAR 6
- #define POSAO_BOLNICAR 7
- #define POSAO_GROBAR 8
- #define POSAO_DZEPAROS 9
- #define POSAO_FARMER 10
- #define POSAO_MASINOVODJA 11
- #define POSAO_DOSTAVLJAC 12
- #define POSAO_KAMIONDZIJA 13
- #define POSAO_PILOT 14
- #define POSAO_ELEKTRICAR 15
- #define POSAO_VODOINSTALATER 16
- #define POSAO_RUDAR 17
- #define POSAO_DRVOSECA 18
- #define POSAO_RIBAR 19
- // =============================== ========== =============================== //
- main()
- {
- print("Komande By Skorpija");
- }
- // ============================== { commands } ============================== //
- YCMD:komande(playerid, params[], help)
- {
- #pragma unused help
- new string1[512],string[512];
- format(string1,sizeof(string1),""BELA"Nalog\nGeneralno\nImovina\nPosao\nProdaja\nOrganizacija\nChat\nOstalo");
- format(string, sizeof(string), "%s", string1);
- SPD(playerid,16121, DIALOG_STYLE_LIST, ""BELA"Komande", string, "Dalje", "Izlaz");
- return 1;
- }
- //==============================================================================
- //==============================================================================
- fDialog(16121)
- {
- if(!response) return 1;
- switch(listitem)
- {
- case 0:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Nalog:"BELA"\n/promenipass\n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 1:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Generalno:"BELA"\n Koristite broj 2 da upalite ili ugasite motor. Takodje mozete i na /engine\n", sizeof(strgh));
- strcat(strgh, "/novi /pitaj /report /bojatd /daj /prihvati /odbij /rent /unrent /zapalicigaru /ugasicigaru /pdozvole /stats /naocare /promenispawn /koristi\n", sizeof(strgh));
- strcat(strgh, "/kapija /marama /kockica /vreme /osvezi /banka /kredit /otvoriracun /eject /kupidozvole /admini /gamemasteri /vipovi /lideri\n", sizeof(strgh));
- strcat(strgh, "/pravila /anims(uskoro) /gorivo /teamspeak /pismeni /naruciubistvo /promoteri /gps /call /p /h \n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 2:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Imovina:"BELA"\n/kupikucu /kuca /kupifirmu /firma /kupistan /stan /kupivikendicu /vikendica /kupigarazu /graza\n/v /mo /bi /kupipolovno /kupivozilo\n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 3:
- {
- new strgh[2045];
- if (PlayerInfo[playerid][pPosao] == POSAO_NEMAPOSAO)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n Trenutno nemate ni jedan posao\n zaposlite se i zaradite novac\n da bi ste se zaposlili kucajte "srwboja"/posao\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_BUSVOZAC)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/linija /prekiniposao\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_KOSACTRAVE)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/kositravu /prekiniposao\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_MEHANICAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"CTRL da zakacite/otkacite vozilo | /mlociraj | /popravi | /napuni\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_POSTAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/posta /prekiniposao\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_KOMUNALAC)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/komunalno /prekiniposao\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_GRADJEVINAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/malter /poravnaj /prekiniposao\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_BOLNICAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/izleci /oprema\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_GROBAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/grobar /oprema\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_DZEPAROS)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/ukradi | Posle svake kradje morate sacekati odredjeno vreme\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_RIBAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/ribari \n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_FARMER)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/mleko /oranje /vrsenje\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_MASINOVODJA)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/voz\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_DOSTAVLJAC)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/uzmikutiju /utovari /istovari\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_KAMIONDZIJA)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/tura /oprema\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_PILOT)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/let /oprema\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_ELEKTRICAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/kvar /oprema\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_VODOINSTALATER)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/pronadjikvar /oprema /zatvoriventil /popravikvar\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_RUDAR)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/posao /prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/kopajzlato /predajzlato /utovarizlato /istovarizlato\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pPosao] == POSAO_DRVOSECA)
- {
- strcat(strgh, ""CRVENA"Posao:"BELA"\n/prekiniposao /oprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"/drva /oprema\n\n", sizeof(strgh));
- }
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 4:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Prodaja:"BELA"\n/smsoglas\n/v(Prodaj vozilo , Prodaj vozilo igracu), /kuca(Prodaj kucu igracu , Prodaj kucu)\n/firma(Prodaj Firmu Drzavi)/stan(prodaj stan)\n/vikendica(Prodaj vikendicu)\n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 5:
- {
- new strgh[2045];
- if (PlayerInfo[playerid][pClan] == 0 || PlayerInfo[playerid][pLider] == 0)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n Trenutno niste u organizaciju\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"LSPD: "BELA"/f /clanovi /cuff /uncuff /vuci /pusti /duznost /tazer /kazna /najava /su /ocistidosije\n", sizeof(strgh));
- strcat(strgh, ""BELA"LSPD: "BELA"/pojacanje /pdoprema /ponistilociranje /lociraj /mdc /swatoprema /oduzmi /pretresi\n", sizeof(strgh));
- strcat(strgh, ""BELA"LSPD: "BELA"/trazeni /pu /uhapsi /megafon /proveridosije /prepreka /unistiprepreku /unistisveprepreke\n", sizeof(strgh));
- strcat(strgh, ""BELA"LSPD: "BELA"/stavirotaciju /skinirotaciju /ram /skinimaramu /obori \n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 2 || PlayerInfo[playerid][pLider] == 2)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"The Vinci Family: "BELA"/sverc /oponisti /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 3 || PlayerInfo[playerid][pLider] == 3)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Black Dragon Triads: "BELA"/sverc /oponisti /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 4 || PlayerInfo[playerid][pLider] == 4)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Grove Street Family: "BELA"/kupisjeme /posadidrogu /beridrogu /oponisti /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 5 || PlayerInfo[playerid][pLider] == 5)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Ballas: "BELA"/sverc /oponisti /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 6 || PlayerInfo[playerid][pLider] == 6)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Novinari: "BELA"/intervju /oglasi /vesti /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 7 || PlayerInfo[playerid][pLider] == 7)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Marshall : "BELA"/f /clanovi /cuff /uncuff /vuci /pusti /duznost /tazer /kazna /najava /su /moprema\n", sizeof(strgh));
- strcat(strgh, ""BELA"Marshall : "BELA"/pojacanje /pdoprema /ponistilociranje /lociraj /mdc /swatoprema /oduzmi /pretresi\n", sizeof(strgh));
- strcat(strgh, ""BELA"Marshall : "BELA"/trazeni /pu /uhapsi /megafon /proveridosije /prepreka /unistiprepreku /unistisveprepreke\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 8 || PlayerInfo[playerid][pLider] == 8)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Parking Servis: "BELA"/zakaci /psduznost /psparkiraj /otkaci /psnajava | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank \n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 9 || PlayerInfo[playerid][pLider] == 9)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Condor: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 10 || PlayerInfo[playerid][pLider] == 10)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Hitman: "BELA"/htrazeni /hlociraj /oprema /baci | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 11 || PlayerInfo[playerid][pLider] == 11)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Blue Lagoon: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 12 || PlayerInfo[playerid][pLider] == 12)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"LCN: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 13 || PlayerInfo[playerid][pLider] == 13)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Da Naga Boys: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 14 || PlayerInfo[playerid][pLider] == 14)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Taxi: "BELA"/f /clanovi /taxi /prihvati | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 15 || PlayerInfo[playerid][pLider] == 15)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Yakuza: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 16 || PlayerInfo[playerid][pLider] == 16)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"FBI: "BELA"/f /clanovi /cuff /uncuff /vuci /pusti /duznost /tazer /kazna /najava /su /ocistidosije\n", sizeof(strgh));
- strcat(strgh, ""BELA"FBI: "BELA"/pojacanje /fbioprema /ponistilociranje /lociraj /mdc /swatoprema /oduzmi /pretresi\n", sizeof(strgh));
- strcat(strgh, ""BELA"FBI: "BELA"/trazeni /pu /uhapsi /megafon /proveridosije /prepreka /unistiprepreku /unistisveprepreke\n\n", sizeof(strgh));
- strcat(strgh, ""BELA"FBI: "BELA"/obori /ram /kazna /skinimaramu\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 17 || PlayerInfo[playerid][pLider] == 17)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Black Cobra Corporation: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 18 || PlayerInfo[playerid][pLider] == 18)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"Vatrogasci: "BELA"/vatrenaoprema /f /clanovi | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- if (PlayerInfo[playerid][pClan] == 19 || PlayerInfo[playerid][pLider] == 19)
- {
- strcat(strgh, ""CRVENA"Organizacija:"BELA"\n/napustiorg\n", sizeof(strgh));
- strcat(strgh, ""BELA"DeathRow: "BELA"/f /clanovi /sverc ENTER/SPACE(Sef) /baci|podigni | "CRVENA"Lider: "BELA"/ubaci /izbaci /clanovi /dodelirank /war\n\n", sizeof(strgh));
- }
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 6:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Chat:"BELA"\n/me /do /s /tiho /b /w /akcenat\n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- case 7:
- {
- new strgh[2045];
- strcat(strgh, ""CRVENA"Ostalo:"BELA"\n/charity /propose /witness /opljackajopstinu /opljackajzlataru /divorce /neon /izvadipasos\n", sizeof(strgh));
- ShowPlayerDialog(playerid,16120,DIALOG_STYLE_MSGBOX, "Komande", strgh, "Izlaz", "");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment