if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login", "You already have an registred account ! Type you password below to login:", "Login", "Quit"); SetPlayerTime(playerid, 23, 0); SetPlayerWeather(playerid, 2); isLogging[playerid] = true; TogglePlayerSpectating(playerid, 1); InterpolateCameraPos(playerid, 975.8445,-1885.6123,51.3452, 170.6750,-1819.0737,29.9493, 120000, CAMERA_MOVE); InterpolateCameraLookAt(playerid, 978.0808,-1828.8401,13.3273, 168.7359,-1769.5266,4.4659,120000, CAMERA_MOVE); SendClientMessage(playerid, FactColor[9], "This account it's already registred ! Type your password to login ..."); } else { SetPlayerTime(playerid, 23, 0); SetPlayerWeather(playerid, 2); isLogging[playerid] = true; ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registering...", "You don't have an registred account ! Type you password below to register to our server:", "Register", "Quit"); InterpolateCameraPos(playerid, 975.8445,-1885.6123,51.3452, 170.6750,-1819.0737,29.9493, 120000, CAMERA_MOVE); InterpolateCameraLookAt(playerid, 978.0808,-1828.8401,13.3273, 168.7359,-1769.5266,4.4659,120000, CAMERA_MOVE); SendClientMessage(playerid, FactColor[9], "That name it's not Registered on our server ! Type a strong password and join US !"); }
It's natural for those functions to work improperly, it has already been that way.
|
// Top of script forward UnsetInterpolateCamera(playerid);
// Somewhere in script public UnsetInterpolateCamera(playerid) { InterpolateCameraPos(playerid, 975.8445,-1885.6123,51.3452, 170.6750,-1819.0737,29.9493, 120000, CAMERA_MOVE); InterpolateCameraLookAt(playerid, 978.0808,-1828.8401,13.3273, 168.7359,-1769.5266,4.4659,120000, CAMERA_MOVE); return 1; }
// Replace your InterpolateCameraPos() and InterpolateCameraLookAt() with this SetTimerEx("UnsetInterpolateCamera", 1000, false, "u", playerid);
if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login", "You already have an registred account ! Type you password below to login:", "Login", "Quit"); SetPlayerTime(playerid, 23, 0); SetPlayerWeather(playerid, 2); isLogging[playerid] = true; TogglePlayerSpectating(playerid, 1); SetTimerEx("UnsetInterpolateCamera", 1000, false, "u", playerid); SendClientMessage(playerid, FactColor[9], "This account it's already registred ! Type your password to login ..."); } else { SetPlayerTime(playerid, 23, 0); SetPlayerWeather(playerid, 2); isLogging[playerid] = true; ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registering...", "You don't have an registred account ! Type you password below to register to our server:", "Register", "Quit"); SetTimerEx("UnsetInterpolateCamera", 1000, false, "u", playerid); SendClientMessage(playerid, FactColor[9], "That name it's not Registered on our server ! Type a strong password and join US !"); }