09.01.2011, 00:37
pawn Код:
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, UserStats[playerid][Name], MAX_PLAYER_NAME);
if(CheckAccountExists(UserStats[playerid][Name]))
{
AccountExists[playerid] = 1;
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back To New Life Gaming", "Please Login, insert your password below", "Login", "Leave");
return 1;
}
else if(!CheckAccountExists(UserStats[playerid][Name]))
{
AccountExists[playerid] = 0;
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Welcome To New Life Gaming", "Please Register, insert a password below", "Register", "Leave");
return 1;
}
return 1;
}