BF2 invisible
Im making vip player fully invisible in BF2 server. But vip invisible not work. Where did i put wrong?
Invisible part PHP Code:
PHP Code:
|
Re: BF2 invisible
else if ( get_user_flags(id) & ADMIN_VIP && get_user_weapon(id) == CSW_KNIFE )
I would also switch them around because now if shotgunlevel is anything but 0, that case will be called instead of the VIP part. |
Re: BF2 invisible
Oh yea i forgot the get_user_flags. Yea that's the problem. If i put this top of the shotgunlevel this will work?
|
Re: BF2 invisible
Try it and you'll find out. I haven't tested it myself but that's one obvious error.
|
Re: BF2 invisible
is there any force way to make invisible?
|
Re: BF2 invisible
What do you mean?
|
Re: BF2 invisible
I mean if player is vip then player will always invisible. Whenever if player has shotgun badge or not.
|
Re: BF2 invisible
Quote:
Code:
gPcvarBadgesActive and gPcvarBadgePowers is true (I assume it is) if the user is alive, a VIP and holding a knife The code I provided now should be the same as you have since I already told you to do these changes. As you can see, the shotgunlevel is set but isn't used until we have already made sure that the user is not a VIP. So basically, yes, this will give any VIP invisibility no matter what shotgunlevel is. |
All times are GMT -4. The time now is 16:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.