Menu - Menu Callback [Advanced]
i have problem with menu..
i folowed this "tutorial" but i can't make it work https://forums.alliedmods.net/archiv...p/t-98762.html PHP Code:
first problem, my cvars ain't 0 or 1 like in tutorial, so i tried this way but it doesn't work edit: one more question how to block radar for 15 second? |
Re: Menu - Menu Callback [Advanced]
You only add the callback for the 3rd item, so only the 3rd item is going to be checked in the callback.
|
Re: Menu - Menu Callback [Advanced]
And, it won't compile. Check your if statments again.
|
Re: Menu - Menu Callback [Advanced]
thanks for helping fysiks and Exolent
I didn't understand you fysiks, my if statement are kill_counter[id]<3 etc... as i said probem is that my statements aint 1 or 0 like in tutorial i solved the problem with menu, it's working, but on other way :) still want to know how to do it like this... two more question 1. is there any better way to set task on enemy players PHP Code:
any one know the better way of setting task on enemy team 2. how to disable radar for 15 sec i have one idea, but i dont know how good is it.. PHP Code:
but will it work? |
Re: Menu - Menu Callback [Advanced]
1. I would not recommend setting a task for everyone on the other team if it can be avoided. What are you trying to do?
2. Quote:
Quote:
|
Re: Menu - Menu Callback [Advanced]
1. Setting task on everyone isn't the best way, but my scripting skill isn't good, so i don't know how to avoid that
i'm trying to hide/block radar for 15 seconds on oposite team players 2. I know that, but i told radar, because EMP effect should hide whole hud....and changing from (1<<3) to (1<<2) isn't hard :) i tested plugin, it has UAV, EMP, AirStrike with jet, but code is redundant .. i still want to keep plugin private, so i didn't posted the code UAV works great, EMP is slowhacking (hud_draw), airstrike is perfect xD if i find a way how to hide hud item, and than make it appear 15 seconds later, that will be great xD |
Re: Menu - Menu Callback [Advanced]
hm i made some code for radar blocking
here it is PHP Code:
client_PreThink or EventResetHUD? |
Re: Menu - Menu Callback [Advanced]
try to register the Radar event, and if the player's radar is blocked (by cvar), send him the fake 0,0,0 coords...
|
Re: Menu - Menu Callback [Advanced]
already done that :)
PHP Code:
|
| All times are GMT -4. The time now is 19:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.