Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmdtext, "/telefonpomoc", true))
- {
- ShowPlayerDialog(playerid, 504, DIALOG_STYLE_MSGBOX, "{1BB5E0}Telefon Pomoc",
- "{FAFAFA}/call /call 92\n\n/ucall /sms\n{F2DE05}/answer\n\n{F7F5F5}/h(andup){F7F5F5}/number", "U Redu", "");
- return 1;
- }
- if(!strcmp(cmdtext, "/househelp", true))
- {
- ShowPlayerDialog(playerid, 4332, DIALOG_STYLE_MSGBOX, "{1BB5E0}Kuca | Komande za kucu", "{F7F5F5}/enter /exit /open /home /heal /houseupgrade (/hu) /setrentable /tv (off/player)\n/carupgrade /carcolor /evictall /towcar /fixcar /modcar /modst /modlr /setrent /evict /housewithdraw", "Dobro", "");
- return 1;
- }
- if(!strcmp(cmdtext, "/notehelp", true))
- {
- ShowPlayerDialog(playerid, 507, DIALOG_STYLE_MSGBOX, "{1BB5E0}Blokcic",
- "{FAFAFA}/shownotes /teletenote\n\n/createnote\n{F2DE05}/givenote", "Dobro", "");
- return 1;
- }
- if(!strcmp(cmdtext, "/businesshelp", true))
- {
- ShowPlayerDialog(playerid, 506, DIALOG_STYLE_MSGBOX, "{1BB5E0}Biznis",
- "{FAFAFA}/enter /bizinfo /bizfee\n\n/prodprice /exit /open\n{F2DE05}/sellbiz /bizwithdraw\n\n{F7F5F5}/bizbank{F7F5F5}Komande", "Dobro", "");
- return 1;
- }
- if(strcmp(cmd, "/nepostovanje", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /nepostovanje [ID Igraca/Dio Imena] [novac] [Razlog]");
- return 1;
- }
- new playa;
- new money;
- playa = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- money = strval(tmp);
- if(money < 1 || money > 50000) { SendClientMessage(playerid, COLOR_GREY, " Cijena kazne ne moze biti ispod 1 ni preko 50000 !"); return 1; }
- new result[64];
- new length = strlen(cmdtext);
- new offset = idx;
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if (PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- SafeGivePlayerMoney(playa, -money);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 256, "[Factory] %s je kaznio %s Novac: $%d Razlog: %s", sendername,giveplayer,money,(result));
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " niste ovlasteni da koristite tu komandu!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement