PED_CYCLE_WEAPON_LEFT
#1

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?
Reply
#2

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
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply
#6

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

Those keys aren't supported.
Reply
#7

ohhh so theres no way to check it?
Reply
#8

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
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)