The file is created IDK why even if player just connect and I want the file to be created when player pass the roleplay quiz can you tell me which things can be changed?
pawn Код:
{
if(IsPlayerNPC(playerid)) return 1;
SetPlayerCameraPos(playerid,-2807.1675,-471.1498,77.0597);
gPlayerLoggedIn[playerid] = 0;
PlayerSpectating[playerid] = 0;
gLastCar[playerid] = 0;
KnowsIt[playerid] = 0;
BigEar[playerid] = 0;
if(fexist(UserPath(playerid)))
{
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Welcome College Of SuperNatural Roleplay,Enjoy your stay.");
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: For help use /help or /ask.");
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowDialog(playerid, 2, DIALOG_PASS, "Login", "That username is registered,\nYou have 60 seconds to login.", "Login", "Exit");
}
else
{
ShowPlayerDialog(playerid,DIALOG_QUIZ,DIALOG_STYLE_LIST,"Powergamming is...","...Roleplaying realistic actions upon another player.\n...Roleplaying unrealistic actions or forcing another player to do something.\n...Forcing another player to do something in realistic manner. ","Confirm","Quit");
QuizAnswers[playerid] = 0;
}
return 1;
}