16.09.2012, 19:56
pawn Код:
OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
LoginIntro(playerid);
IntroTimer = SetTimer("IntroLog",3000,1);
gPlayerLogged[playerid] = 0;
}
return 1;
}
pawn Код:
public IntroLog(playerid)
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{F81414}Login","{FFFFFF}Modern {FFFFFF}RolePlay\n\n{F81414}Type in your password to play","Login","Exit");
KillTimer(IntroTimer);
return 1;
}