SA-MP Forums Archive
sniper buggyness - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sniper buggyness (/showthread.php?tid=452572)



sniper buggyness - rocklore - 21.07.2013

Hi,

How can I stop the sniper rifle from moving you forwards, like when i'm on a ledge and aim it keeps moving me forwards then U falls off :dumb:

I'm new to PAWN, this happens on the PS2 version but will probably happen on the PC version too unless its fixed and the fix has been put in SAMP.


Re: sniper buggyness - IceCube! - 21.07.2013

From experiance Zooming in with a sinper does not cause you to walk forward?


Re: sniper buggyness - Rufio - 21.07.2013

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
From experiance Zooming in with a sinper does not cause you to walk forward?
Even if it does you cant prevent it in PAWN.


Re: sniper buggyness - IceCube! - 21.07.2013

https://sampforum.blast.hk/showthread.php?tid=312745

Yes use the Alter the IsPlayerAiming stock here.


Re: sniper buggyness - rocklore - 21.07.2013

it's when you fire/un aim


Re: sniper buggyness - IceCube! - 21.07.2013

It can still be detected by Altering that function ;/

You could always use OnPlayerKeyStateChange().

Detect KEY_AIM and then check his weapon GetPlayerWeapon then get his co-ordinates and when it moves to OldKeys place him back at his starting position (ALOT Simpiler) Again I CBF to code it.


Re: sniper buggyness - rocklore - 21.07.2013

cheers dude repped