SA-MP Forums Archive
Camera on login - 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 on login (/showthread.php?tid=605126)



Camera on login - ShoortyFl - 14.04.2016

Hello, i have a problem with login camera, the thing is that it's not being setted up as it should, sometime it works and sometime it doesn't, when it doesnt this is the pic:

http://i.imgur.com/o7OFF01.png

Codes:

OnPlayerConnect

pawn Код:
TogglePlayerSpectating(playerid, true);
    SetTimerEx("PostaviKameru", 3000, false, "d", playerid);

public PostaviKameru

pawn Код:
SetPlayerCameraPos(playerid, 2239.0566, -1659.3634, 49.0518);
    SetPlayerCameraLookAt(playerid, 2341.5562, -1659.0171, 13.3816);



Re: Camera on login - OmegaKiller72 - 14.04.2016

try without timer


Re: Camera on login - andrejc999 - 14.04.2016

Do you have any more timers for like login dialog or something?


Re: Camera on login - UltraScripter - 14.04.2016

Remove toggleplayerspectating


Re: Camera on login - Gammix - 14.04.2016

Use this in OnPlayerRequestClass because once the player is connected, OnPlayerRequestClass is also called which causes you the trouble.