About player with immunity frag in menu
The code below here is I copy form this: https://forums.alliedmods.net/showth...6364#BasicMenu
But I want to know what else should add in the code then will disable to choose the player who have ADMIN_IMMUNITY frags. I know my english is really bad, if you don't know what I'm say please look below. 1.Player1 < Normal player 2.Player2 3.Player3 4.Player4 < This player have ADMIN_IMMUNITY frag 5.Player5 Code:
#include <amxmodx> |
Re: About player with immunity frag in menu
Use a callback function. In the call back function check if they have immunity. If they do then return ITEM_DISABLED otherwise return ITEM_ENABLED.
A callback example can be found in the New Menu Tutorial posted by Exolent. |
Re: About player with immunity frag in menu
https://forums.alliedmods.net/showpo...0&postcount=95
I have look at this. But I try to edit myself but still nothing change... |
Re: About player with immunity frag in menu
Quote:
|
Re: About player with immunity frag in menu
Here I use if a player alive to do a return for check does it work, but nothing disable...
Code:
#include <amxmodx> |
Re: About player with immunity frag in menu
PHP Code:
|
Re: About player with immunity frag in menu
Still no change in the menu.
What's the problem? I replace the MenuCallback part of yours |
Re: About player with immunity frag in menu
Quote:
|
| All times are GMT -4. The time now is 01:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.