Menu keys for sg550 & g3sg1
Hello ;) I'm trying to modify the awp limiter plugin, so it can also limits the auto snipers, everything is working, except that i don't know the keys for these weapons in the menu ...
Here is the key for the AWP... Code:
|
Yes that would be good for me to know also so I can restrict them :D
|
Yeah i'm not alone :D
|
Hu, damn 1.6, they are changing depending on the team :/
CT : AWP : 1<<5 SG550 : 1<<4 G3SG1 : Doesn't exist xD [ 1<<-1 } T : AWP : 1<<4 SG550 : Doesn't exist xD [ 1<<-1 } G2SG1 : 1<<5 ... Now i must find a way to make them change depending of the team in my register_menucmd .. Oo Any Idea? |
logical flow:
1<<-1 = 1>> 1 = 0 :D |
Hu ? Need an explanation Oo
|
You said
1<<-1 << is the bit shift left operator so when you pass it a negative value, it should logically shift right :D => 1<<-1 = 1>>1 but 1>>1 in binary: 00000001>>1 Because the left bits are filled with 0 when shifting right, 1>>1 will be 0 :D Idea: Register both of them and decide when the public is run |
Ahhhh, okay ;)
EDIT: Got It ;) Code:
new team = get_user_team(id) Code:
register_menucmd(-31,(1<<4),"menu_sl_snip") |
| All times are GMT -4. The time now is 07:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.