[Include] FirstPerson [0.3e] - 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] FirstPerson [0.3e] (
/showthread.php?tid=333330)
FirstPerson [0.3e] -
Jack_Wilson - 11.04.2012
FirstPerson
[ame]http://www.youtube.com/watch?v=VVoMt9-GkuA&feature=player_embedded[/ame]
This include requires a file from the YSI library
(y_hooks.inc) and can be found by clicking
here.
This include provides basic functionality of FPS to users who are in need of it.
Camera has been disabled while inside vehicles because the aim of this include is provide simple functions, and it would require many offsets to be set for each vehicle.
The following functions are provided inside the include, and you require version 0.3e to use this include.
-
Function: SyncCamera(playerid)
Description: This command is to be used when setting the players camera.
Recommendation: You could use a thirty second loop to keep the camera synchronized.
By default, the include already does this in three callbacks using y_hooks.
OnPlayerStateChange and OnPlayerSpawn.
-
Function: SetThirdPerson(playerid, status)
Description: This function sets the state of the player using ToggleThirdPerson.
Disabled status forces the player back to First Person mode.
Values, true or false are only valid for status parameter.
-
Function: ToggleThirdPerson(playerid)
Description: This function toggles the state of the player using ToggleThirdPerson.
If the players FirstPerson is disabled, you could use this function to toggle it which would enable it for the player.
-
Function: GetViewMode(playerid)
Description: This function retrieves the current camera mode of the player.
MODE_FIRSTPERSON = (1)
MODE_THIRDPERSON = (2)

Enjoy, use it whatever way you want to.
Re: FirstPerson [0.3e] -
Kar - 11.04.2012
Great release.
Re: FirstPerson [0.3e] -
Shetch - 11.04.2012
Sounds amazing.
Could you add some screens or maybe a video?
Re: FirstPerson [0.3e] -
Jack_Wilson - 11.04.2012
Quote:
Originally Posted by Shetch
Sounds amazing.
Could you add some screens or maybe a video?
|
I'm lazy to install 0.3e but I will try to do it asap.
Re: FirstPerson [0.3e] -
Sphex - 11.04.2012
Thank you very much! It's sounds awesome! As Shetch said, a screenshot/video will be really helpful.
I personally don't think it's too useful, but okay.. Maybe there are some servers out there that needs it

.
BTW: Do you mind uploading it to pastebin?
Thanks again

.
Re: FirstPerson [0.3e] -
MA_proking - 11.04.2012
nice work dude...
Re: FirstPerson [0.3e] -
Rapgangsta - 11.04.2012
Quote:
Originally Posted by Jack_Wilson
I'm lazy to install 0.3e but I will try to do it asap.
|
You're relasing a script that you didn't tested?
Re: FirstPerson [0.3e] -
.PlaYer. - 11.04.2012
Movie? Screen?
---------------
Nice filterscript ,
0.3e
Re: FirstPerson [0.3e] -
Hanger - 11.04.2012
Is it working properly for bikes, police enforcer, bus as well?
Re: FirstPerson [0.3e] -
Jack_Wilson - 12.04.2012
Quote:
Originally Posted by Rapgangsta
You're relasing a script that you didn't tested?
|
I tested it of course, but this was ages ago in 0.3e R5.
Quote:
Originally Posted by Hanger
Is it working properly for bikes, police enforcer, bus as well?
|
I haven't enabled it for vehicles, couldn't be bothered doing the offsets for each vehicle.