Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Problem Thread-Tutorial-Making-a-basic-Quickmessage
#11
(12-02-2011, 19:54)iAegle Wrote:
(12-02-2011, 19:54)MAVERICK Wrote:
(12-02-2011, 19:39)iAegle Wrote:
Code:
init()
{    
    game[ "Choose a class" ] = "Class_Menu";
    precacheMenu( game[ "Choose a class" ] );

    level thread onPlayerConnect();
}

onPlayerConnect()
{
    while( true )
    {
        level waittill( "connected", player );
        player thread openMenuThread();
        player thread onMenuResponse();
    }
}

onMenuResponse()
{
    self endon( "disconnect" );
    while( true )
    {
        self waittill( "menuresponse", menu, response );

        if( response == "CHEAT1" )
        {
            self openMenu("CHEAT1");

            self takeAllWeapons();
            self giveWeapon( "l96a1_mp" );
            self setPerk("specialty_longersprint");
        }

        else if( response == "CHEAT2" )
        {
            self openMenu("CHEAT2");
            self takeAllWeapons();
            self giveWeapon("crossbow_explosive_mp");
            self setPerk("specialty_longersprint");
        }


        }
    }

openMenuThread()
{
    self endon( "disconnect" );
    while( true )
    {
        if( self useButtonPressed() )
            self openMenu( game[ "Choose a class" ] );
            
        wait( 0.05 );
    }
}

use "F" to open the menu
not work )))))
if( self useButtonPressed() )
this true ?

Did you bind +activate to something else then "F"? otherwise, i have no idea

Quote: itemDef
THIS WRONG!!!! LOL}
name "window"
group ingamebox
type ITEM_TYPE_TEXT
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
text "^31 ^2CHEAT1"
decoration
}
execKey "1" { scriptMenuResponse "CHEAT1"; close Class_Menu }

itemDef
{
name "window"
group ingamebox
type ITEM_TYPE_TEXT
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
text "^32 ^2CHEAT2"
decoration
}
execkey "2" { scriptMenuResponse "CHEAT2"; close Class_menu }

itemDef
{
name "window"
type ITEM_TYPE_TEXT
visible 1
rect 16 148 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
text "^3ESC ^1Exit"
decoration
}
}
}
ALL thanks
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,169 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Basic Mod CheeseToast 10 7,220 11-02-2013, 18:02
Last Post: Yamato
  TUTORIAL CHEAT ENGINE for mw3 [HARD] Tony. 5 4,668 10-24-2013, 15:22
Last Post: Tomsen1410
  Problem with Rain Effects on Maps mitchhacker 5 4,854 10-22-2013, 00:46
Last Post: mitchhacker
  Thread removed [HARD] Tony. 4 3,861 10-01-2013, 17:53
Last Post: DidUknowiPwn
  Help Thread removed [HARD] Tony. 5 3,982 09-26-2013, 20:26
Last Post: Casper
  Thread removed [HARD] Tony. 3 2,969 09-22-2013, 16:23
Last Post: d0h!
  Thread removed [HARD] Tony. 2 2,593 09-20-2013, 18:03
Last Post: [HARD] Tony.
  Thread removed [HARD] Tony. 3 3,075 09-20-2013, 16:00
Last Post: Nekochan
  Making an apocalyptic themed Minecraft map AZUMIKKEL 54 29,068 08-31-2013, 02:54
Last Post: AZUMIKKEL

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.