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