When player connect (if banned) shows dialog that he is banned!
#2

pawn Code:
new bool: Banned[MAX_PLAYERS char];
CMD:ban(playerid, params[])
{
    if(!isnull(params)) Banned[params] = true;
    return 1;
}

OnPlayerConnect(playerid)
{
    if(Banned[playerid])
    {
        SendClientMessage(playerid, -1, " You are banned ! ");
        return Kick(playerid);
    }
}
Make your own ban command, this is example, if you don't understand I'll make it later !
Reply


Messages In This Thread
When player connect (if banned) shows dialog that he is banned! - by SplinteX - 22.12.2013, 16:15
Re: When player connect (if banned) shows dialog that he is banned! - by erminpr0 - 22.12.2013, 16:29
Re: When player connect (if banned) shows dialog that he is banned! - by Konstantinos - 22.12.2013, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)