Change background image
  1. What's up? I see you're viewing as a Guest. How about registering, it only takes like 2 minutes. This will enable you to do more on our forum and stay updated.

[SC7E52] Black Ops - Dir Permissions

Discussion in 'Wii Game Mods' started by wick3d, Jul 8, 2011.

Thread Status:
This thread is more than 180 days old.
  1. wick3d

    wick3d z0rz Admin

    Ok, so those of you who use trentlio's mod menus already know that people can only use functions if they have the right access. This simply takes it a step further, what it does is only allows people who have the proper access to view what is inside specific dirs. for instance, VIP users will not be able to look in the host dir, etc.

    I did this because im tired of people looking at my unfinished options and bugging me to use them, also it will cut down on the menu traffic, helping prevent lag/freezes.

    You can simply replace your currect monitorUseButton with this one. (read note at the bottom of this post)


    monitorUseButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "useButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    if( isDefined( self._options[self._chosenBase + "/" + self._terminalNames[self._chosenBase][self._cursorPosition[self._inMenuLevel]]][0] ) == false && self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self iPrintlnFade( "^7Error: nothing in the folder" );
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    if( self.lobbyStatus["Absolute Value"] >= self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].permission )
    {
    self._inMenuLevel++;
    self._cursorPosition[self._inMenuLevel] = 0;
    }
    else if( self.lobbyStatus["Absolute Value"] < self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].permission )
    {
    self iPrintlnFade( "^1Access Denied." );
    }
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "function" )
    {
    self thread performAction();
    }

    self notify( "update" )


    NOTE: This is only for Trentlio's 3.x menus, it will not work on Nity's or versions of trent earlier than 3.0.
    3 people like this.
  2. Brandon

    Brandon Programmer Moderator

    Thankyou very much :) i will test asoon as i fix my wii issue lol should be soon i always liked your menu with this in it great
  3. That One Guy

    That One Guy Junior Member Member

    Nice one wicked! +1 rep! I think this will definitely cause less freezes.
  4. Brandon

    Brandon Programmer Moderator

Thread Status:
This thread is more than 180 days old.

Share This Page