SHOW:
|
|
- or go back to the newest paste.
1 | - | if(strcmp(cmdtext, "/boja", true) == 0) |
1 | + | if(strcmp(cmdtext, "/adminboi", true) == 0) |
2 | { | |
3 | if(IsPlayerConnected(playerid)) | |
4 | { | |
5 | if(PlayerInfo[playerid][pAdmin] >= 1337) | |
6 | { | |
7 | ShowPlayerDialog(playerid, 152, DIALOG_STYLE_LIST, "Izberi Boja","Zolta\nCrvena\nZelena\nPlava\nJako Crvena\nBela\nRozeva", "OK", "Iskluci"); | |
8 | } | |
9 | else | |
10 | { | |
11 | SendClientMessage(playerid, WHITE, "{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda."); | |
12 | } | |
13 | } | |
14 | return 1; | |
15 | } | |
16 | ||
17 | if(dialogid == 152) | |
18 | { | |
19 | if(response) | |
20 | { | |
21 | if(listitem == 0) // Zolta | |
22 | { | |
23 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
24 | { | |
25 | SetPlayerColor(playerid, COLOR_YELLOW); | |
26 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo zolta."); | |
27 | } | |
28 | } | |
29 | if(listitem == 1) // Crvena | |
30 | { | |
31 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
32 | { | |
33 | SetPlayerColor(playerid, COLOR_RED); | |
34 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo temna crvena."); | |
35 | } | |
36 | } | |
37 | if(listitem == 2) // Zelena | |
38 | { | |
39 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
40 | { | |
41 | SetPlayerColor(playerid, ZELENKASTA2); | |
42 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo zelena."); | |
43 | } | |
44 | } | |
45 | if(listitem == 3) // Plava | |
46 | { | |
47 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
48 | { | |
49 | SetPlayerColor(playerid, COLOR_BLUE); | |
50 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo plava."); | |
51 | } | |
52 | } | |
53 | if(listitem == 4) // Jako Crvena | |
54 | { | |
55 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
56 | { | |
57 | SetPlayerColor(playerid, COLOR_UBAVACRVENA); | |
58 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo jako crvena."); | |
59 | } | |
60 | } | |
61 | if(listitem == 5) // Bela | |
62 | { | |
63 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
64 | { | |
65 | SetPlayerColor(playerid, COLOR_WHITE); | |
66 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo bela."); | |
67 | } | |
68 | } | |
69 | if(listitem == 6) // Rozeva | |
70 | { | |
71 | if (PlayerInfo[playerid][pAdmin] >= 1337) | |
72 | { | |
73 | SetPlayerColor(playerid, COLOR_VICE); | |
74 | SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Ja smenivte bojata vo rozeva."); | |
75 | } | |
76 | } | |
77 | } | |
78 | } |