Issue - AdminMenu
Hey!
Just wanted to add the Admin Menu from a mod(http://www.mpgh.net/forum/308-call-d...od-v3-1-a.html) to my own mod.
In my mod i wrote
and thats the _AdminMenu beginning:
but it never gets to the threads at the end(updateKick etc.)
Because when i press F,E,E(Activate,Melee,Melee) nothing happends.
So, is anything wrong about THIS code?
Just wanted to add the Admin Menu from a mod(http://www.mpgh.net/forum/308-call-d...od-v3-1-a.html) to my own mod.
In my mod i wrote
Code:
self thread maps\mp\mods\_AdminMenu::menuInit();
Code:
menuInit()
{
self endon( "disconnect" );
wait 1;
iniMenuVarsSelf();
iniMenuVars();
for(;;)
{
self waittill( "spawned_player" );
self thread menu();
}
}
menu(){
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
self waittill("+activate");
self waittill("+melee");
self waittill("+melee");
if(self.menuIsOpen == false)
{
self.menuIsOpen = true;
}
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self thread menuHowTo();
}
}
Because when i press F,E,E(Activate,Melee,Melee) nothing happends.
So, is anything wrong about THIS code?

It's for zombies, ain't it? You'll require some functions for notifying 



