Help with Flag's within this script!
Hey guys when I try to change the FLAG used to give the admin this ability it doesnt register all the admins get the boost regardless of if they have the flag or not.
This was done by a member of the community requested here, http://forums.alliedmods.net/showthread.php?t=88521 Code:
#include <amxmodx> |
Re: Help with Flag's within this script!
What flags did you write ?
|
Re: Help with Flag's within this script!
I used M and T
|
Re: Help with Flag's within this script!
You have written knife_flags "mt" ? Are you sure that the cvar well changed ?
|
Re: Help with Flag's within this script!
No I mean I tried m, and then I tried t.
Not both of those flags together. I changed it correctly and I checked it 3 or 4 times. pCvarKnifeSpeed = register_cvar( "knife_speed", "335" ); pCvarKnifeFlags = register_cvar( "knife_flags", "m" ); |
Re: Help with Flag's within this script!
PHP Code:
|
Re: Help with Flag's within this script!
@YamiKaitou : To get 0 or 1.
a & b ; if true : will give a, then '!' will give 0 and the second '!' will give 1. if false: will give 0, then '!' will give 1 and the second '!' will give 0. edit : @Kitami : just tested, it works fine for me. I've removed 'm' in users.ini ; changed 'a' to 'm' in the plugin, and when I'm on the server, I don't have the speed. I've debugged too, nothing wrong. |
| All times are GMT -4. The time now is 02:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.