SA-MP Forums Archive
[Include] SetPlayerCamera (no HUD) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] SetPlayerCamera (no HUD) (/showthread.php?tid=346633)

Pages: 1 2


SetPlayerCamera (no HUD) - MP2 - 29.05.2012

Just a simple include that allows you to easily set the player's camera and remove the HUD:



NEW TOPIC (version 2): https://sampforum.blast.hk/showthread.php?pid=2362690#pid2362690


Re: SetPlayerCamera (no HUD) - Fmfan - 29.05.2012

Sweet!


Respuesta: SetPlayerCamera (no HUD) - [DOG]irinel1996 - 29.05.2012

Nice one, really small but useful. And original!


Re: SetPlayerCamera (no HUD) - Juninho_Oakley - 29.05.2012

Nice!


Respuesta: SetPlayerCamera (no HUD) - Marricio - 29.05.2012

I suggest removing the HUD in SetCameraBehindPlayer function.


Re: SetPlayerCamera (no HUD) - Face9000 - 29.05.2012

This should be added in the future versions of Sa-Mp,like a toggle hud function.

Good work.


Re: SetPlayerCamera (no HUD) - ReneG - 29.05.2012

Quote:
Originally Posted by Marricio
Посмотреть сообщение
I suggest removing the HUD in SetCameraBehindPlayer function.
Sadly, it's currently impossible to disable the HUD on-foot without making the player drunk.

Good job MP2, good to see another include from you.


Respuesta: SetPlayerCamera (no HUD) - Marricio - 29.05.2012

Oh i see, so you can't do TogglePlayerSpectating on-foot?


Re: SetPlayerCamera (no HUD) - Jay_ - 29.05.2012

Why do you re-set it a number of times in OnPlayerUpdate?


Re: SetPlayerCamera (no HUD) - MP2 - 29.05.2012

Quote:
Originally Posted by Jay_
Посмотреть сообщение
Why do you re-set it a number of times in OnPlayerUpdate?
Because it seems to have issues when players lag/pause or sometimes randomly fails to work.


Re: SetPlayerCamera (no HUD) - paulor - 29.05.2012

I used TogglePlayerSpectating, To remove the progress bar of the spawn.


Re: SetPlayerCamera (no HUD) - MP2 - 29.05.2012

That's the idea. This sets the player's camera too though.


Re: SetPlayerCamera (no HUD) - paulor - 29.05.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
That's the idea. This sets the player's camera too though.
That way you can choose which camera will be different from that used! I'll use it then ...


Re: SetPlayerCamera (no HUD) - MP2 - 04.06.2012

Update released. Just a small bug fixed that may cause SetCameraBehindPlayer to be 'over-ridden' by SetPlayerCamera if still processing updates in OPU.


Re: SetPlayerCamera (no HUD) - Firo - 04.06.2012

Seems awesome, thanks mate!


Re: SetPlayerCamera (no HUD) - Stefand - 15.06.2012

It works nice but, when i log in it rolls my player into a kind of ball and puts it in the air lol


Re: SetPlayerCamera (no HUD) - ikey07 - 15.06.2012

Totally nothing new, I use this trick for over 2 years already, just in my case I set special action dance which also disable HUD.

Anyways, hope more servers will start to use it, else they all make narrow screen and calls it wide screen


Re: SetPlayerCamera (no HUD) - Niko_boy - 15.06.2012

great work , simple but beautful piece of work
i read script several times to actualy know how you hide hud xD
"TogglePlayerSpectating"
gosh my eyes doesnt detect stuff easily ...


Re: SetPlayerCamera (no HUD) - Jhero - 15.06.2012

Very Simple for newbies, nice job MP2.


Re: SetPlayerCamera (no HUD) - MP2 - 16.06.2012

Quote:
Originally Posted by ikey07
Посмотреть сообщение
Totally nothing new, I use this trick for over 2 years already, just in my case I set special action dance which also disable HUD.

Anyways, hope more servers will start to use it, else they all make narrow screen and calls it wide screen
I never said it was new. To my understanding an include like this hasn't been released before, and it makes it extremely easy to do what would be confusing for new scripters - allows you to use one function to work an entire system.