Hello...
#4

You need to unset the functions with a timer if you are trying to use it under OnPlayerConnect().

Код:
// 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);
So your registration section should look similar to this:
Код:
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 !");
	}
Reply


Messages In This Thread
Hello... - by Mariciuc223 - 07.08.2015, 18:18
Re: Hello... - by SickAttack - 07.08.2015, 18:28
Re: Hello... - by Mariciuc223 - 07.08.2015, 18:30
Re: Hello... - by zDivine - 07.08.2015, 19:04
Re: Hello... - by SickAttack - 07.08.2015, 19:09
Re: Hello... - by Mariciuc223 - 07.08.2015, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)