01.05.2014, 07:34
OnPlayerConnect:
Enum pInfo
pawn Код:
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
format(dstring, sizeof(dstring), "{FFFFFF}Welcome back to {00FF26}SERVER!{FFFFFF}\n\nThat name is registered. Please enter your password below.");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", dstring, "Login", "Quit");
}
else
{
format(dstring, sizeof(dstring), "{FFFFFF}Welcome %s {FFFFFF}to {00FF00}SERVER!\n\n{FFFFFF}It seems to be your first time on the server?\nThe registration progress will be as the following:\n\n1. Rules Agreement\n2. An RP quiz that consists out of 5 questions\n3. Password Selection\n4. Age Selection\n5. Skin Selection", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_START, DIALOG_STYLE_MSGBOX, "West Coast Life Roleplay",dstring, "Continue", "Quit");
}
pawn Код:
enum pInfo
{
pCash,
pPass,
pAdmin,
pLevel,
pAge,
pKills,
pDeaths,
pSkin,
pInt,
pVW,
Float:pFacingAngle,
Float:pHealth,
Float:pArmour,
Float:pLastX,
Float:pLastY,
Float:pLastZ,
}
new PlayerInfo[MAX_PLAYERS][pInfo];