Login Help
#6

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
if(!dini_Exists(path)) // if account doesn't exist
    {
        gPlayerAccount[playerid] = 1;
        DisplayDialogForPlayer(playerid, 1); // you show login dialog ? wth
        SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance.");
        return 1;
    }
    else // account exists
    {
        gPlayerAccount[playerid] = 0;
        DisplayDialogForPlayer(playerid, 2); // you show register dialog ? wth
        SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance.");
        return 1;
    }
@Jeff: "gPlayerAccount[playerid] = 0;" is the case for the players who do not have an account.

@Smileys: The "tmppass" is defined above.
Reply


Messages In This Thread
Login Help - by Michael B - 17.05.2015, 14:12
Re: Login Help - by Smileys - 17.05.2015, 14:37
Re: Login Help - by Michael B - 17.05.2015, 14:51
Re: Login Help - by Smileys - 17.05.2015, 15:03
Re: Login Help - by Jefff - 17.05.2015, 15:09
Re: Login Help - by Michael B - 17.05.2015, 15:36
Re: Login Help - by Konstantinos - 17.05.2015, 15:39
Re: Login Help - by FernandoLight - 17.05.2015, 15:42
Re: Login Help - by Michael B - 17.05.2015, 15:57
Re: Login Help - by FernandoLight - 17.05.2015, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)