Monday, June 4, 2012

SetPlayerCamera (no HUD)

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

http://pastebin.com/WL2HYwZ0

Not even going to bother with a long-ass post. Enjoy.

The syntax is simply

SetPlayerCamera(playerid, Float:x, Float:y, Float:z, Float:x2, Float:y2, Float:z2, sets=5);

x y z is the camera pos
x2 y2 z2 is the lookat pos
Sets is the amount of times the camera gets set in onplayerupdate, it defaults to 5 to ensure that the camera is definately set. It should be at least 2.

Hurray for having to script work-arounds. It should work flawlessly, if not; let me know.

Here's one I made earlier:

__________________
INC:
[NEW] Vehicle Functions - Sync random carcolors, GetVehicleColors, GetVehicleInterior
Disable Ammunation - Plug and play ammunation disabling
Dialog Buffer - Buffer/que/delay dialogs when one is already shown
IEE (InteriorEnterExits) - Easily create interior enter/exits
Interactive clickable textdraw keypad [easy to use] - It's awesome

No comments:

Post a Comment