Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 1377)
- {
- if(!response)
- {
- Kick(playerid);
- return 1;
- }
- new pass = strval(inputtext);
- new playerPass = PlayerInfo[playerid][pAdminPanelPassword];
- new string2[280];
- if( pass == playerPass)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string2, sizeof(string2), "{0095FF}[UC:RPG] | {FFFFFF}Logirani ste kako Admin level %d.", PlayerInfo[playerid][pAdmin]);
- SendClientMessage(playerid,COLOR_GRAD1,string2);
- GledaDialog[playerid] = 0;
- LoginPanel[playerid] = 1;
- }
- if(PlayerInfo[playerid][pGameMaster] >= 1)
- {
- format(string2, sizeof(string2), "{0095FF}[UC:RPG] | {FFFFFF}Logirani ste kako Gamemaster level %d.", PlayerInfo[playerid][pGameMaster]);
- SendClientMessage(playerid,COLOR_GRAD1,string2);
- GledaDialog[playerid] = 0;
- LoginPanel[playerid] = 1;
- }
- SendClientMessage(playerid,COLOR_GRAD1,"{0095FF}[UC:RPG] | {FFFFFF}Uspesno vlegovte vo UC Admin/GM Panelot.");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"{FF4040}[ERROR] | {C0C0C0}Pogresna lozinka.");
- Kick(playerid);
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement