How To Make Unban Command To Unban Offline Player!
#2

Here is a sample with using Y_ini for offline ban

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


Messages In This Thread
How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:05
Re: How To Make Unban Command To Unban Offline Player! - by luis_mendoza - 10.05.2014, 08:07
Re: How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:15
Re: How To Make Unban Command To Unban Offline Player! - by danish007 - 10.05.2014, 08:24

Forum Jump:


Users browsing this thread: 2 Guest(s)