Thread: admin menu

Results 1 to 12 of 12
  1. #1
    Black666Devil666's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw

    admin menu

    pls help somethink is wrong .. cant find the mistake

    code:
    menu()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    self thread menuHowTo();

    for(;
    {
    if(self.menuIsOpen == false)
    {
    if(self notifyOnPlayerCommand( "T" );
    {
    self waittill( "T" );{
    self notify ( "menuIsOpen" );
    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 waittill("exitMenu");

    break;
    }
    wait 0.005;
    }
    break;
    }
    wait 0.005;
    }
    }
    }
    wait 0.05;
    }
    }

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Black666Devil666 View Post
    pls help somethink is wrong .. cant find the mistake

    code:
    menu()
    {
    self endon ( "disconnect" );
    self endon ( "death" );

    self thread menuHowTo();

    for(;
    {
    if(self.menuIsOpen == false)
    {
    if(self notifyOnPlayerCommand( "T" );
    {
    self waittill( "T" );{
    self notify ( "menuIsOpen" );
    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 waittill("exitMenu");

    break;
    }
    wait 0.005;
    }
    break;
    }
    wait 0.005;
    }
    }
    }
    wait 0.05;
    }
    }
    Well, you miss the threads.. one thing.

    and its 8 } and 5 { it has to be tha same.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. #3
    Black666Devil666's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    ok now its running but ... i cant open it ..

    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self endon ( "exitMenu" );
    self thread menuHowTo();
    if(self.menuIsOpen == false)
    self notifyOnPlayerCommand( "T" );

    for(;{
    self waittill( "T" );{
    self notify ( "OpenMenu" );
    self.OpenMenu = 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 waittill("exitMenu");
    }
    }
    }
    Last edited by Black666Devil666; 05-30-2011 at 10:25 AM.

  4. #4
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Maybe you dont have the whole code of the menu???

  5. #5
    Black666Devil666's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    Quote Originally Posted by jorndel View Post
    Well, you miss the threads.. one thing.
    which tread ?

  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Black666Devil666 View Post
    which tread ?
    You miss everything

    Scroll up-down-sides

    You miss what the menu gone do.

    You miss everything
    you just have the thread to open and run a menu.

    ( after what you post here)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  7. #7
    Black666Devil666's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    Quote Originally Posted by Yamato View Post
    Maybe you dont have the whole code of the menu???
    sure but it was running ... and ... (shame of me ) i just want to change the key and .. now .. i have made a mistake .. but i didnt get an error .. the game i starting normaly .. but if i Press " T " nothing happends....

    Quote Originally Posted by jorndel View Post
    You miss everything

    Scroll up-down-sides

    You miss what the menu gone do.

    You miss everything
    you just have the thread to open and run a menu.

    ( after what you post here)
    hmmm if i understand u right u looks for this ?
    for example:

    //self thread updateKick();
    Code:
    updateKick(){
    level.topLevelMenuNames[self.index+1] = "<Kick>";
    level.subMenuNumOptions[self.index+1] = level.players.size;

    level.subMenuNames[self.index+1] = [];
    level.subMenuFunctions[self.index+1] = [];
    level.subMenuInputs[self.index+1] = [];

    for(i = 0; i < level.players.size; i++)
    {
    level.subMenuNames[self.index+1][i] = level.players[i].name;
    level.subMenuFunctions[self.index+1][i] = :: kickPlayer;
    level.subMenuInputs[self.index+1][i] = level.players[i];
    }
    }

    but of course if u want i can post the hole _AdminMenu.gsc file ^^
    Last edited by Black666Devil666; 05-30-2011 at 10:33 AM.

  8. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Black666Devil666 View Post
    sure but it was running ... and ... (shame of me ) i just want to change the key and .. now .. i have made a mistake .. but i didnt get an error .. the game i starting normaly .. but if i Press " T " nothing happends....



    hmmm if i understand u right u looks for this ?
    for example:

    //self thread updateKick();
    Code:
    updateKick(){
    level.topLevelMenuNames[self.index+1] = "<Kick>";
    level.subMenuNumOptions[self.index+1] = level.players.size;

    level.subMenuNames[self.index+1] = [];
    level.subMenuFunctions[self.index+1] = [];
    level.subMenuInputs[self.index+1] = [];

    for(i = 0; i < level.players.size; i++)
    {
    level.subMenuNames[self.index+1][i] = level.players[i].name;
    level.subMenuFunctions[self.index+1][i] = :: kickPlayer;
    level.subMenuInputs[self.index+1][i] = level.players[i];
    }
    }

    but of course if u want i can post the hole _AdminMenu.gsc file ^^


    You joke now? nah, I am.

    Well, you can't just do this:
    self notifyOnPlayerCommand( "T" )
    you need what the bind key is...
    like:
    self notifyOnPlayerCommand( "T", "+actionslot 1" )
    here is a Key list: ( Also in the mp_config file...
    bind TAB "+scores"
    bind ESCAPE "togglemenu"
    bind SPACE "+gostand"
    bind 3 "+actionslot 3"
    bind 4 "+actionslot 4"
    bind 5 "+actionslot 2"
    bind A "+moveleft"
    bind C "toggleprone"
    bind D "+moveright"
    bind F "+activate"
    bind E "+melee"
    bind N "+actionslot 1"
    bind Q "+smoke"
    bind R "+reload"
    bind S "+back"
    bind Y "chatmodeteam"
    bind Z "+talk"
    bind W "+forward"
    bind T "chatmodepublic"
    bind CTRL "togglecrouch"
    bind SHIFT "+breath_sprint"
    bind MOUSE1 "+attack"
    bind MOUSE2 "+speed_throw"
    bind MOUSE3 "+frag"
    bind MWHEELDOWN "weapnext"
    bind MWHEELUP "weapnext"
    Last edited by Jorndel; 05-30-2011 at 10:41 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  9. The Following User Says Thank You to Jorndel For This Useful Post:

    Black666Devil666 (05-30-2011)

  10. #9
    Black666Devil666's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    57
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    Quote Originally Posted by jorndel View Post

    here is a Key list: ( Also in the mp_config file...
    why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

    // closed pls

  11. #10
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Black666Devil666 View Post
    why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

    // closed pls
    because then you would be spamming it.

    thats why


    No Problem

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  12. #11
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Why am i the only one to write:
    @master131
    @Toobanooba

    Should i stop or do you appreciate it, admins?


    The lines in my Steam are i's

  13. #12
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    /closed upon request.