Camera on login
#1

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);
Reply
#2

try without timer
Reply
#3

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

Remove toggleplayerspectating
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)