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