SHARE
TWEET

SETFULL

a guest Jan 29th, 2020 162 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:setfull(playerid, params[])
  2. {
  3.     if(GetString(PN(playerid),FullDostup1))
  4.     {
  5.     if(PlayerInfo[playerid][pAdmin] < 8) return false;
  6.     if(ADuty[playerid]!=228) return SendClientMessage(playerid,COLOR_GREY,NO_DUTY_TEXT);
  7.     new name;
  8.     if(sscanf(params,"ud",name)) return SendClientMessage(playerid,COLOR_RED, !"Используйте: /setfull [Nick]");
  9.     if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid,COLOR_RED,"Игрок не авторизован!");
  10.     format(str, sizeof(str), "UPDATE `fulldostup` SET `Admin`='0'  WHERE `NickName`='%s' AND `Admin`<6;",name);
  11.     mysql_tquery(mysql, str);
  12.     format(string,sizeof(string),"[Информация] {FFFFFF}Вы выдали игроку %s %d-й уровень администратирования и полный доступ.",Name(id),admin);
  13.     SendClientMessage(playerid,COLOR_RED,string);
  14.     }
  15.     return true;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top