SA-MP Forums Archive
PED_CYCLE_WEAPON_LEFT - 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: PED_CYCLE_WEAPON_LEFT (/showthread.php?tid=603915)



PED_CYCLE_WEAPON_LEFT - Alpha000 - 29.03.2016

hello everyone, i want to use if(IsKeyJustDown(PED_CYCLE_WEAPON_LEFT, newkeys, oldkeys)) it in OnPlayerKeyStateChange but it says undefined symbol PED_CYCLE_WEAPON_LEFT.....cuz its not added in a_samp.inc so is there any way of using it?


Re: PED_CYCLE_WEAPON_LEFT - Septikos - 29.03.2016

You can't use that key without defining it, alternativally you can use one of the default keys. For a list of default keys; https://sampwiki.blast.hk/wiki/Keys

To add your own key simply define it; https://sampwiki.blast.hk/wiki/Define_KEY_AIM


Re: PED_CYCLE_WEAPON_LEFT - Alpha000 - 29.03.2016

i know that buddy...but i believe that there must be a way of using.....I just wanna check that when player cycle next or previous weapon.


Re: PED_CYCLE_WEAPON_LEFT - Septikos - 29.03.2016

You can check when a user changes weapons, using the example script here; https://sampwiki.blast.hk/wiki/OnPlayerUpdate

But as for checking if they are cycling left or right, there is no way of doing this. Sorry.


Re: PED_CYCLE_WEAPON_LEFT - Alpha000 - 31.03.2016

no, actually i wanna check if player click these buttons....e.g i change weapons with q and e so i wanna check if a player click any of these buttons....NOT if he cycles left or right.


Re: PED_CYCLE_WEAPON_LEFT - Sew_Sumi - 31.03.2016

https://sampwiki.blast.hk/wiki/Keys

Those keys aren't supported.


Re: PED_CYCLE_WEAPON_LEFT - Alpha000 - 31.03.2016

ohhh so theres no way to check it?


Re: PED_CYCLE_WEAPON_LEFT - Alpha000 - 31.03.2016

actually i wanna block these keys so players don't take out guns by pressing these keys......and they should only be able to take out weapons by the command i'll make


Re: PED_CYCLE_WEAPON_LEFT - Admigo - 31.03.2016

Why you dont disarm the player and when the player use the command you give a weapon to the player.


Re: PED_CYCLE_WEAPON_LEFT - Alpha000 - 31.03.2016

but they should buy the weapon first.....like the way u saying there will be no use of weapons license and ammunition the......