Lol, sorry, cant answer this, but here is the command.
pawn Код:
dcmd_unbanname(playerid,params[]) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 4) {
new tmp[256], Index; tmp = strtok(params,Index);
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unbanname [name]");
new adminname[MAX_PLAYER_NAME], string[128], unbanname;
unbanname = strval(tmp);
if(udb_Exists(unbanname)) {
dUserSetINT(unbanname).("banned", 0);
GetPlayerName(playerid, adminname, sizeof(adminname));
CMDMessageToAdmins(playerid,"UNBANNAME");
format(string,sizeof(string),"Server: %s has been unbanned by %s (ID: %d).",unbanname,adminname,playerid);
SendClientMessageToAll(green,string);
SaveToFile("UnBanLog",string);
print(string);
return 1;
} else return SendClientMessage(playerid, red, "ERROR: No player with this name.");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
}
Hope anyone can help me.