OBan Help
#1

Hi,

Does anybody know how, or can give me direction to script /oban?

Thanks
Reply
#2

what do you mean?
Reply
#3

Код:
CMD:oban(playerid,params[])
{
Ban(playerid);
return 1;
}
... More info please.
Reply
#4

Offline Ban, When people non-rp logout to avoid RP.
Reply
#5

get his IP from your logs

/rcon login (pass)
/rcon ipban (IP)

Mission passed, respect +++ :P
Reply
#6

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;
}
You will need to edit to your needs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)