[Include] OnPlayerCamera...v.0.1
#1

ATTENTION: This Include only works with SA-MP 0.3e RC2 and higher!

~~~ OnPlayerCamera... v0.1a ~~~
Hello guys!
This is just some callback-include I made after I read this.

With this Inlcude you can call OnPlayerCameraMoved(playerid) and OnPlayerCameraLookMoved(playerid) after the movement of a player's positon or LookAtPosition has been done (InterpolateCameraPos and InterpolateCameraLookAt).

Here you go:
Download from my page.
Pastebin.

Greetz


PS: Critics and comments are welcome
Reply
#2

Nice! Thank you
Reply
#3

You do realise this won't be accurate?
Reply
#4

why MP2
Reply
#5

Very good
Reply
#6

why don't you use GetPlayerCameraPos in OnPlayerUpdate? if you pause the timer will mess up and the callback will not work, and there should be a parameters for old/new positions the callbacks
Reply
#7

If GetPlayerCameraPos worked with this, that would be really nice. Test it, Meta.
Reply
#8

Okay, when I return home, I gotta do that stuff

EDIT: ok, lol, edited from my phone. Try the pastebin version, hope there are no mistakes
Reply
#9

Not bad.
Reply
#10

Does this work? I didn't see these callbacks en the newest SA-MP header files.
Reply
#11

Nice Work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)