Try out this I scripted, It'll match the Stevo127's Game-Mode:
Also, give me credits if you're gonna use it.
pawn Код:
dcmd_unban(playerid, params[])
{
new string[128];
if(!strlen(params))
{
format(string, sizeof(string), "USAGE: /adunban (Full Player Name)");
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(!udb_Exists(params))
{
format(string, sizeof(string), "The player file %s is not found.",params);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
format(string, sizeof(string), "unbanip %s", dUser(params).("IP"));
SendRconCommand(string);
format(string, sizeof(string), "reloadbans");
SendRconCommand(string);
new nameban = dUserINT(params).("Nameban");
if(nameban == 0)
{
format(string, sizeof(string), "{FFFFFF}The Player Name %s is not banned.", params);
SendClientMessage(playerid,COLOR_RED,string);
return 1;
}
dUserSetINT(params).("Nameban", 0);
format(string, sizeof(string), "{cccc00}[Admin] {ffffff}Administrator player {FF0033}%s {ffffff}has been unbanned.",params,PlayerName(playerid));
printf("%s", string);
SendClientMessage(playerid,COLOR_ADMIN,string);
format(string, sizeof(string), "9[ADMIN]Administrator has been unbanned %s",PlayerName(playerid),params);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}