how can i get camera object id
#1

new test = createobject(xxxx);
if you take photo on test sendclientmessage gg

like that: if(photo == test) scm gg

how can i do that
Reply
#2

Camera is not an object, it is a weapon ID? So i understand you are trying to record when taking a picture.

What i would probably do is just check the keys if Aiming of the camera is pressed (RMB) and then you take a picture by pressing also (LMB), this code would probably go on callback: OnPlayerKeyStateChange (More info at https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange ), available keys are here: https://sampwiki.blast.hk/wiki/Keys .

After that i would probably do some math, with the seeing if the player is looking visually at the object. Probably can find more info here: https://sampforum.blast.hk/showthread.php?tid=181218

Sorry, but this is probably the best i can assist you and try to point you in the right direction
Reply
#3

i want to make like this
https://www.youtube.com/watch?v=gWY-qq0B-vg 11:54
i want to verify if you take photo on object
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)