erewefrfwfrewq

Untitled

Nov 15th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. case DIALOG_SECURITY:
  2. {
  3. if(!response) return 1;
  4. new string[159];
  5. switch(response)
  6. {
  7. case 0: return SendClientMessage(playerid, COLOR_ERROR, "Nu vei putea folosi nici o comanda!");
  8. case 1: //return SendClientMessage(playerid, COLOR_ERROR, "You have successfully logged in.");
  9.  
  10. {
  11.  
  12. if(strfind("fivegame2017", inputtext, true) == 0)
  13. {
  14. pInfo[playerid][pAdmin] = GetPVarInt(playerid, "pAdmin");
  15. if(pInfo[playerid][pAdmin] >= 1 && pInfo[playerid][pAdmin] < 7) {
  16. format(AdminWText, sizeof(AdminWText), "(HelloBot): Adminul %s (%d) s-a conectat pe server.", GetName(playerid), playerid);
  17. SendAdminMessage(playerid, COLOR_LOGS, AdminWText);
  18. }
  19. if(pInfo[playerid][pHelper] != 0 || pInfo[playerid][pAdmin] != 0) {
  20. format(AdminWText, sizeof(AdminWText), "(Staff MOTD): {FFFFFF}%s", AdminWText);
  21. SCM(playerid, COLOR_WARNING, AdminWText, -1);
  22. }
  23. admacc[playerid] = 1;
  24. }
  25. else {
  26. SCM(playerid, COLOR_WARNING, "Invalid password!");
  27. format(AdminWText, sizeof(AdminWText), "Warning: %s a introdus gresit parola de securitate.", GetName(playerid));
  28. SendAdminMessage(playerid, COLOR_WARNING, AdminWText, 7);
  29. SCM(playerid, -1, "{4EE2EC}Acum poti folosii orice comanda");
  30. SCM(playerid, -1, "{4EE2EC}You have successfully logged in.");
  31. return 1;
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment