Unban command
#2

Code:
CMD:unban(playerid,params[])
{
    new string[124],string1[124];
    if(isnull(params)) return ShowUsageMessage(playerid,"/unban [playername]");
    format(string,sizeof(string),"Users/%s.ini",params);
    if(fexist(string))
    {
        new INI:file = INI_Open(string);
        INI_WriteInt(file,"Banned",0);
        INI_Close(file);
    }
    else SendClientMessage(playerid,-1,"Account not found");
    return 1;
}
Reply


Messages In This Thread
Unban command - by Droxx - 31.05.2017, 11:10
Re: Unban command - by coool - 31.05.2017, 12:16
Re: Unban command - by Droxx - 31.05.2017, 14:57
Re: Unban command - by Droxx - 31.05.2017, 18:24
Re: Unban command - by JasonRiggs - 31.05.2017, 18:28
Re: Unban command - by Droxx - 31.05.2017, 18:29
Re: Unban command - by JasonRiggs - 31.05.2017, 18:32
Re: Unban command - by Droxx - 31.05.2017, 18:45
Re: Unban command - by Sumit4 - 31.05.2017, 18:54
Re: Unban command - by Droxx - 31.05.2017, 19:00

Forum Jump:


Users browsing this thread: 2 Guest(s)