Guest User

Untitled

a guest
Sep 18th, 2019
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. кейс
  2.  
  3. case 5732: //if(i == 10 || i == 17 || i == 19)
  4. {
  5. if(!response) return 1;
  6. if(!strcmp(inputtext, "Следующая страница")) playerSetAdminPage[playerid]++;
  7. else if(!strcmp(inputtext, "Предыдущая страница")) playerSetAdminPage[playerid]--;
  8. else
  9. {
  10. new id = playerSetAdminID[playerid], list = playerSetAdminPage[playerid]*15+listitem+1, admin = adminCommand[id][list];
  11. //if(list >= 50 && list <= 55 || list == 57 || list == 61) { if(strcmp(playerName[playerid], DEV_NAME) != 0) return EROM(playerid, "Вам недоступна данная функция"); }
  12. if(admin)
  13. {
  14. SendClientMessagef(playerid, -1, "Вы забрали у администратора %s[%i] команду %s", PlayerInfo[id][pNames], id, aCommArray[list-1]);
  15. SendClientMessagef(id, -1, "Администратор %s[%i] забрал у вас команду %s", PlayerInfo[playerid][pNames], playerid, aCommArray[list-1]);
  16. }
  17. if(!admin)
  18. {
  19. SendClientMessagef(playerid, -1, "Вы выдали администратору %s[%i] команду %s", PlayerInfo[id][pNames], id, aCommArray[list-1]);
  20. SendClientMessagef(id, -1, "Администратор %s[%i] выдал вам команду %s", PlayerInfo[playerid][pNames], playerid, aCommArray[list-1]);
  21. }
  22. adminCommand[id][list] = !admin;
  23. new column[15];
  24. format(column, sizeof column, "aComm%d", adminCommand[id][list+1]);
  25. format(string, sizeof string, "UPDATE `admin` SET `%s` = '1' WHERE `Name` = '%s'", column,PlayerInfo[id][pNames]);
  26. mysql_tquery(connects,string);
  27. }
  28. ShowDialogSetAdmin(playerid);
  29. return 1;
  30. }
RAW Paste Data