daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:setname(playerid, params[])
  2. {
  3.     if(l[playerid][pAdmInfo][0] < 5) return true;
  4.     if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, COLOR_GRAD,"Èñïîëüçîâàíèå: /setname [playerid]");
  5.     if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid,COLOR_GRAD,"Èãðîê íå â èãðå.");
  6.     if(strlen(NickChange[params[0]]) < 3) return SendClientMessage(playerid,COLOR_GREY, "Ýòîò èãðîê íå õî÷åò ìåíÿòü íèê");
  7.     l[params[0]][pDonateMoney] -= 15;
  8.     new query[128];
  9.     f(query,"SELECT `Name` FROM `accounts` WHERE `Name` = '%e'",NickChange[params[0]]);
  10.     format(query, true, "ChangeName", "ds", params[0],NickChange[params[0]]),mysql_query(1,query);
  11.     ShowPlayerDialog(params[0], 15, DIALOG_STYLE_MSGBOX, "{FFCD00}Ñìåíà íèêà", "{FFFFFF}Ïåðåçàéäèòå íà àêêàóíò ñ íîâûì èìåíåì àêêàóíòà", "Çàêðûòü", "");
  12.     return true;
  13. }
  14. publics ChangeName(playerid,stringg[])
  15. {
  16.     new r, f;
  17.     new query[128];
  18.     cache_get_data(r, f);
  19.     if(r) return SendClientMessage(playerid,COLOR_GRAD,"Äàííûé íèê çàíÿò");\
  20.     f(query,"UPDATE `accounts` SET `Name` = '%s' WHERE `Name` = '%s'",stringg);
  21.     f(query,"SELECT `%s` FROM `accounts` WHERE `Name` = '%e'", query, l[playerid][pName]);
  22.     format(query, false, "", ""),mysql_query(1,query);
  23.     new string[104];
  24.     format("%s ñìåíèë èìÿ íà %s",l[playerid][pName], NickChange[playerid]);
  25.     SendClientMessageToAll(0x9000FFFF,string);
  26.     return true;
  27. }
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