Camera affected by dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Camera affected by dialog (
/showthread.php?tid=627550)
Camera affected by dialog -
AndreiWow - 29.01.2017
I added this at onplayerconnect
Код:
InterpolateCameraPos(playerid, 1476.143310, -1637.729248, 40.966156, 1481.309326, -1729.007202, 13.453255, 6000);
InterpolateCameraLookAt(playerid, 1476.857177, -1637.901977, 36.020389, 1481.305541, -1732.989746, 16.476329, 3500);
And if I remove this:
Код:
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to login:","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Basic Roleplay","Type your password below to register a new account:","Register","Quit");
}
it wont work anymore, any idea?
Re: Camera affected by dialog -
Abagail - 29.01.2017
Show the entire OnPlayerConnect callback.
Re: Camera affected by dialog -
AndreiWow - 29.01.2017
Quote:
Originally Posted by Abagail
Show the entire OnPlayerConnect callback.
|
While I was copying the OnPlayerConnect I got an idea, that was to use a timer and the timer fixed the issue, thanks anyway