Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_SECURITY:
- {
- if(!response) return 1;
- new string[159];
- switch(response)
- {
- case 0: return SendClientMessage(playerid, COLOR_ERROR, "Nu vei putea folosi nici o comanda!");
- case 1: //return SendClientMessage(playerid, COLOR_ERROR, "You have successfully logged in.");
- {
- if(strfind("fivegame2017", inputtext, true) == 0)
- {
- pInfo[playerid][pAdmin] = GetPVarInt(playerid, "pAdmin");
- if(pInfo[playerid][pAdmin] >= 1 && pInfo[playerid][pAdmin] < 7) {
- format(AdminWText, sizeof(AdminWText), "(HelloBot): Adminul %s (%d) s-a conectat pe server.", GetName(playerid), playerid);
- SendAdminMessage(playerid, COLOR_LOGS, AdminWText);
- }
- if(pInfo[playerid][pHelper] != 0 || pInfo[playerid][pAdmin] != 0) {
- format(AdminWText, sizeof(AdminWText), "(Staff MOTD): {FFFFFF}%s", AdminWText);
- SCM(playerid, COLOR_WARNING, AdminWText, -1);
- }
- admacc[playerid] = 1;
- }
- else {
- SCM(playerid, COLOR_WARNING, "Invalid password!");
- format(AdminWText, sizeof(AdminWText), "Warning: %s a introdus gresit parola de securitate.", GetName(playerid));
- SendAdminMessage(playerid, COLOR_WARNING, AdminWText, 7);
- SCM(playerid, -1, "{4EE2EC}Acum poti folosii orice comanda");
- SCM(playerid, -1, "{4EE2EC}You have successfully logged in.");
- return 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment