[DUV] Login Box
#8

mude como eu vou por exactamente

Code:
public OnPlayerSpawn(playerid)
{
return 1;
}
Code:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new string[128];
format(string, sizeof(string), ACCOUNTS_FOLDER, name);
if (AccountInfo[playerid][aLogged] == 0)
{
if (!fexist(string))
{
new kayitmsg[256];
format(kayitmsg,256,"Welcome to the server\n\n%s please open a new account\n\nEnter the new password:",name);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",kayitmsg,"Register","Quit");
register[playerid] = 1;
login[playerid] = 0;
}
else if (fexist(string))
{
new girismsg[256];
format(girismsg,256,"Welcome to the server\n\nUser Name: %s\n\nEnter your password:",name);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",girismsg,"Login","Quit");
register[playerid] = 0;
login[playerid] = 1;
}
}
return 1;
}
compile e teste e diga alguma coisa
Reply


Messages In This Thread
[DUV] Login Box - by Escallus - 16.12.2009, 13:59
Re: [DUV] Login Box - by KingstoN* - 16.12.2009, 15:00
Re: [DUV] Login Box - by RoamPT - 16.12.2009, 17:07
Re: [DUV] Login Box - by SlashPT - 16.12.2009, 17:09
Re: [DUV] Login Box - by Escallus - 16.12.2009, 18:27
Re: [DUV] Login Box - by SlashPT - 16.12.2009, 19:23
Re: [DUV] Login Box - by Escallus - 16.12.2009, 19:38
Re: [DUV] Login Box - by SlashPT - 16.12.2009, 19:46
Re: [DUV] Login Box - by Escallus - 16.12.2009, 19:58
Re: [DUV] Login Box - by SlashPT - 16.12.2009, 20:00

Forum Jump:


Users browsing this thread: 2 Guest(s)