Ban player can still connect
#9

PHP код:
    if(fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
          
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,"Login","{09B086}Type your password below to login.","Login","Quit");
    }
    else
    {
         
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD,"REGISTER","{09B086}asdffadsfadf.","Register","Quit");
    }
if(
pInfo[playerid][pIsBan] == 1)
    {
        
SendClientMessage(playerid,colorenter,"You are banned from the server!");
        return 
Kick(playerid);
    } 
Try loading your data first, then check if he should be kicked.
The other way around doesn't work that good (checking if he should be banned, then afterwards loading his data which holds that info).
Reply


Messages In This Thread
Ban player can still connect - by fuckingcruse - 14.04.2016, 08:57
Re: Ban player can still connect - by -CaRRoT - 14.04.2016, 09:06
Re: Ban player can still connect - by biker122 - 14.04.2016, 09:23
Re: Ban player can still connect - by fuckingcruse - 14.04.2016, 09:28
Re: Ban player can still connect - by NeXoR - 14.04.2016, 09:48
Re: Ban player can still connect - by Pottus - 14.04.2016, 09:51
Re: Ban player can still connect - by itsCody - 14.04.2016, 09:52
Re: Ban player can still connect - by NeXoR - 14.04.2016, 09:56
Re: Ban player can still connect - by AmigaBlizzard - 14.04.2016, 14:23
Re: Ban player can still connect - by sampkinq - 14.04.2016, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)