my gamemode doesn't have /unban cmd
#4

just try this
Код:
YCMD:unban(playerid, params[], help)
{
        #pragma unused help
        if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!");
        new
            name[48],string[64];
        if(sscanf(params, "s[48]",name)) return SCM(playerid, COLOR_RED, "Usage: /unban [Player Name]");
		format(string,sizeof(string),"%s.ini",name);
		fremove(string);
		SCM(playerid, COLOR_RED, "Player has been unbaned!");
		SendRconCommand(string);
		SendRconCommand("reloadbans");
        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: 3 Guest(s)