my gamemode doesn't have /unban cmd
#9

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;
}
Reply


Messages In This Thread
my gamemode doesn't have /unban cmd - by cleanboy - 08.05.2014, 07:31
Re: my gamemode doesn't have /unban cmd - by rockhopper - 08.05.2014, 07:37
Re: my gamemode doesn't have /unban cmd - by cleanboy - 08.05.2014, 07:41
Re: my gamemode doesn't have /unban cmd - by rockhopper - 08.05.2014, 08:01
Re: my gamemode doesn't have /unban cmd - by cleanboy - 08.05.2014, 09:24
Re: my gamemode doesn't have /unban cmd - by cleanboy - 08.05.2014, 12:03
Re: my gamemode doesn't have /unban cmd - by gtakillerIV - 08.05.2014, 12:16
Re: my gamemode doesn't have /unban cmd - by cleanboy - 10.05.2014, 01:50
Re: my gamemode doesn't have /unban cmd - by Parallex - 10.05.2014, 05:49
Re: my gamemode doesn't have /unban cmd - by cleanboy - 10.05.2014, 06:20

Forum Jump:


Users browsing this thread: 5 Guest(s)