Banning through MySQL and checking if player is banned
#2

Do it when they try to login

pawn Код:
if(PlayerInfo[playerid][pBanned] >= 1 )
    {
        SendClientMessage( playerid, COLOR_LIGHTRED, "SERVER: You're banned from this server." );
        Kick(playerid);
        return 1;
    }
Now remember that because 0.3x makes it so you can't send messages to the person while they are being kicked. You need to find a way around this.

I recommend this post by Kalcor. it is VERY useful. I have gotten it to work.
http://forum.sa-mp.com/showpost.php?...2&postcount=14
Reply


Messages In This Thread
Banning through MySQL and checking if player is banned - by PaulDinam - 15.02.2013, 20:43
Re: Banning through MySQL and checking if player is banned - by [TC]XxJuggaloxX - 15.02.2013, 21:03
Re: Banning through MySQL and checking if player is banned - by PaulDinam - 15.02.2013, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)