An offline ban command
#1

pawn Код:
YCMD:offlineban(playerid, params[], help)
{
    new
        TargetID;
    if( !sscanf(params, "u", TargetID))
    {
        new string[32];
        format(string,sizeof(string),PATH,TargetID);
        new INI:File = INI_Open(PATH);
        if(!fexist(string)) return SendClientMessage(playerid, -1, "Invalid player name.");
        INI_WriteInt(File,"Banned",true);
        //BanEx( TargetID, "offlineban" );
        SendClientMessage(playerid,-1, "You have now banned the player..");
        INI_Close(File);
    }
    else
        return SendClientMessage(playerid, -1, "USAGE: /offlineban [playername]");
    return 1;
}
Not sure if I got this right, I would love some help!
Reply


Messages In This Thread
An offline ban command - by HydraX - 06.09.2012, 23:10
Respuesta: An offline ban command - by HydraX - 06.09.2012, 23:43
Re: An offline ban command - by [ABK]Antonio - 06.09.2012, 23:45
Respuesta: Re: An offline ban command - by HydraX - 06.09.2012, 23:49
Re: An offline ban command - by Penki4a - 07.09.2012, 01:27
Respuesta: Re: An offline ban command - by HydraX - 07.09.2012, 01:59
Re: An offline ban command - by [HiC]TheKiller - 07.09.2012, 06:50
Re : An offline ban command - by ricardo178 - 07.09.2012, 07:26
Respuesta: Re: An offline ban command - by HydraX - 07.09.2012, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)