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
![Smiley](images/smilies/smile.png)
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 ![Cheesy](images/smilies/biggrin.png)
|
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.