SA-MP Forums Archive
SpawnPlayer freezes camera - 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: SpawnPlayer freezes camera (/showthread.php?tid=624540)



SpawnPlayer freezes camera - nezo2001 - 18.12.2016



PHP код:
    GivePlayerMoney(playerid5000);
                
SetSpawnInfo(playerid001958.331343.1215.36269.15000000);
                
SpawnPlayer(playerid);
                
SetCameraBehindPlayer(playerid);
                
ShowPlayerDialog(playeridDialogSkinDIALOG_STYLE_LIST"{ffff00}Choose your gender:""Male\nFemale""Choose"""); 
It's under OnDialogResponse
I tried to use SetPlayerBehindCamera but no change occured.


Re: SpawnPlayer freezes camera - henkas - 18.12.2016

I don't thin so its about sa-mp scripts. Make sure you don't have Microsoft IntelliPoint


Re: SpawnPlayer freezes camera - nezo2001 - 18.12.2016

I had it on an old Gamemode And I have just tested it and it's working well.


Re: SpawnPlayer freezes camera - Amads - 18.12.2016

Have you tried searching your code for any unwanted SetPlayerCameraPos? Maybe there is one in OnPlayerUpdate or some looped timer.


Re: SpawnPlayer freezes camera - nezo2001 - 18.12.2016

It's a new script, By the way I used SetCameraBehindPlayer under OnPlayerSpawn and it worked