Saving system
#6

pawn Код:
CMD:banip(playerid, params[])
{
    if(IsPlayerConnected(playerid)) {
        new string[128], tmp[32];
        if(sscanf(params, "s[32]", tmp)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /banip [ip]");
        if(PlayerInfo[playerid][pAdmin] >= 3) {
            AddBan(tmp);
            format(string, sizeof(string), "AdmCmd: %s has banned IP:%s", GetPlayerNameEx(playerid), tmp);
            ABroadCast(COLOR_LIGHTRED,string,2);
        } else {
            SendClientMessage(playerid, COLOR_GRAD2, "   You are not authorized to use that command !");
        }
    }
    return 1;
}
Also Make sure that you have the SSCANF UPDATE [0.3e update]
Reply


Messages In This Thread
Saving system - by _Khaled_ - 04.09.2012, 12:51
Re: Saving system - by ThePrograme - 04.09.2012, 12:57
Re: Saving system - by _Khaled_ - 04.09.2012, 13:06
Re: Saving system - by ThePrograme - 04.09.2012, 13:11
Re: Saving system - by _Khaled_ - 06.09.2012, 01:53
Re: Saving system - by Jermi - 06.09.2012, 03:57
Re: Saving system - by _Khaled_ - 06.09.2012, 11:58
Re: Saving system - by _Khaled_ - 07.09.2012, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)