06.12.2010, 20:03
Quote:
No...
Textdraw is actually intro, and server check if player have registered account. If no, server will show couple textdraws. After that, on scene become server rules, registration, blabla. One more reason why I can't do that on your way, it's because if is player spawned without registration(login), server will kick him. Congratulations |
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if (gPlayerLogged[playerid] != 1)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hello and Welcome! International Airport.", "You need a passport,please register", "Register", "Leave");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hello! This is International Airport.", "Please tell me some information about you((Password))", "Login", "Leave");
}
SetPlayerCameraPos(playerid, 1014.5112,-1483.1392,89.9052);
SetPlayerCameraLookAt(playerid, 1372.2992,-1976.3547,73.5682);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}