Sniper zoom calls KEY_JUMP?!
#1

So our script sends a message anytime someone presses the jump key. Unfortunately, that same key is called whenever a sniper scope is zoomed in or out. How can we fix this?
Reply
#2

Just check if he has a sniper or not?!
Reply
#3

Hello!

Use this:
PHP код:
if(GetPlayerWeapon(playerid) == 34)return 1
If you don't know how you should use this, then you may send us your code.
Reply
#4

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Use this:
PHP код:
if(GetPlayerWeapon(playerid) == 34)return 1
If you don't know how you should use this, then you may send us your code.
That will not work, what if the player has a sniper in his hand not aiming and jumps?
Reply
#5

Aiming will return a different ID from idling or jumping in GetPlayerAnimationIndex(not sure what the ID's are though).
Reply
#6

Quote:
Originally Posted by Jamester
Посмотреть сообщение
That will not work, what if the player has a sniper in his hand not aiming and jumps?
I could force them not to jump because a sniper is too big to jump with
Reply
#7

GetPlayerCameraZoom or GetPlayerCameraMode can help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)