Advertisement
Guest User

Untitled

a guest
Jul 14th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. YCMD:specnick(playerid, params[], help) {
  2. new id, specnick[MAX_PLAYER_NAME], oldname[MAX_PLAYER_NAME], query[120];
  3. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, x_red, "greska // "c_white"Nisi rcon admin!");
  4. if(sscanf(params, "us[24]", id, specnick)) return SendClientMessage(playerid, x_server, "koriscenje // "c_white"/specnick [Ime_Prezime/ID] [Spec Nick]");
  5. if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, x_red, "greska // "c_white"Taj igrac nije na serveru!");
  6. GetPlayerName(playerid, oldname, sizeof(oldname));
  7. mysql_format(SQL, query, sizeof(query), "UPDATE* FROM `players` SET `Name` = '%e' WHERE `Name` = '%e'", specnick, oldname);
  8. mysql_pquery(SQL, query, "AccountCheck", "i", playerid);
  9. SetPlayerName(playerid, specnick);
  10. va_SendClientMessage(id, -1, "%s vam je postavio specijalno ime %s", ReturnPlayerName(playerid), specnick);
  11. return 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement