SA-MP Forums Archive
Function + Timer to destory Moving Camera On Connect - 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: Function + Timer to destory Moving Camera On Connect (/showthread.php?tid=409039)



Function + Timer to destory Moving Camera On Connect - Goldino - 20.01.2013

Hello guys, I've recently posted a few threads. And people did not bother to answer because they do not want to help me! Which I am very angry about! Ok, then I thought of an idea (Well me and my friend) To make a function to Destroy the moving camera using a function and a timer? Because when I logon to my server, the moving camera does not stop, it keeps continuing and it pauses, but it doesn't move to Class Section. Also it hides the "Spawn" button, So I was wondering if you can help me fix it! Thanks


Re: Function + Timer to destory Moving Camera On Connect - Scrillex - 20.01.2013

On each camera movement just set timer. If you are using camera movement at public OnPlayerRequestClass(playerid, classid) just set multiple moving cameras. Using the fs of camera moving options.

You can use
this https://sampforum.blast.hk/showthread.php?tid=329813
or this
https://sampforum.blast.hk/showthread.php?tid=330879


Re: Function + Timer to destory Moving Camera On Connect - Goldino - 20.01.2013

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
On each camera movement just set timer. If you are using camera movement at public OnPlayerRequestClass(playerid, classid) just set multiple moving cameras. Using the fs of camera moving options.

You can use
this https://sampforum.blast.hk/showthread.php?tid=329813
or this
https://sampforum.blast.hk/showthread.php?tid=330879
And how do I use that OnPlayerConnect?


Re: Function + Timer to destory Moving Camera On Connect - DaRk_RaiN - 20.01.2013

To stop it use KillTimer to stop the timer and SetCameraBehindPlayer to stop the rotation.


Re: Function + Timer to destory Moving Camera On Connect - Goldino - 20.01.2013

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
To stop it use KillTimer to stop the timer and SetCameraBehindPlayer to stop the rotation.
Explain more please! Give an example


Re: Function + Timer to destory Moving Camera On Connect - SilverKiller - 20.01.2013

Quote:
Originally Posted by Goldino
Посмотреть сообщение
Explain more please! Give an example
He means, use the KillTimer to stop it with a timer, and also use SetCameraBehindPlayer To stop the rotation.