Posts: 1,079
Threads: 199
Joined: Jun 2013
Reputation:
0
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?
Posts: 1,092
Threads: 4
Joined: Jun 2012
Reputation:
0
Just check if he has a sniper or not?!
Posts: 1,276
Threads: 6
Joined: Aug 2014
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?
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
Aiming will return a different ID from idling or jumping in GetPlayerAnimationIndex(not sure what the ID's are though).
Posts: 1,099
Threads: 79
Joined: Nov 2011
Reputation:
0
GetPlayerCameraZoom or GetPlayerCameraMode can help.