Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Problem Thread-Tutorial-Making-a-basic-Quickmessage
#1
Question 
Can somebody upload this menu. I tried to do it but I could not.Please help
Sorry for terrible English.
Menu NOT open in game
Reply

#2
its not terrible.
can't help since i do not mod black ops.
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#3
use quickmessages.menu
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
C++ Code
  1. #include "ui/menudef.h"
  2.  
  3. #define ORIGIN_QUICKMESSAGETAB 32 224
  4. #define ORIGIN_QUICKMESSAGEWINDOW 32 256
  5.  
  6. {
  7. menuDef
  8. {
  9. name "Class_Menu"
  10. fullscreen 0
  11. rect 0 0 640 480
  12. focuscolor 1 1 1 1
  13. disablecolor 0 0 0 0
  14. style WINDOW_STYLE_EMPTY
  15.  
  16. onOpen
  17. {
  18. setDvar cl_bypassMouseInput "1"
  19. }
  20. onClose
  21. {
  22. setDvar cl_bypassMouseInput "0"
  23. }
  24.  
  25. // WINDOW BACKGROUND
  26. itemDef
  27. {
  28. name "window_background"
  29. visible 1
  30. rect 0 0 224 192
  31. origin ORIGIN_QUICKMESSAGEWINDOW
  32. style WINDOW_STYLE_FILLED
  33. forecolor 1 1 1 1
  34. backcolor 0 0 0 0.7975
  35. decoration
  36. }
  37.  
  38. // WINDOW LINES
  39. itemDef
  40. {
  41. name "window_lines"
  42. visible 1
  43. rect 3 0 2 187
  44. origin ORIGIN_QUICKMESSAGEWINDOW
  45. style WINDOW_STYLE_FILLED
  46. backcolor 1 1 1 .125
  47. decoration
  48. }
  49. itemDef
  50. {
  51. name "window_lines"
  52. visible 1
  53. rect 219 0 2 187
  54. origin ORIGIN_QUICKMESSAGEWINDOW
  55. style WINDOW_STYLE_FILLED
  56. backcolor 1 1 1 .125
  57. decoration
  58. }
  59. itemDef
  60. {
  61. name "window_lines"
  62. visible 1
  63. rect 5 0 214 2
  64. origin ORIGIN_QUICKMESSAGEWINDOW
  65. style WINDOW_STYLE_FILLED
  66. backcolor 1 1 1 .125
  67. decoration
  68. }
  69. itemDef
  70. {
  71. name "window_lines"
  72. visible 1
  73. rect 3 187 218 2
  74. origin ORIGIN_QUICKMESSAGEWINDOW
  75. style WINDOW_STYLE_FILLED
  76. backcolor 1 1 1 .125
  77. decoration
  78. }
  79.  
  80.  
  81. // TITLE
  82. itemDef
  83. {
  84. name "title"
  85. type ITEM_TYPE_TEXT
  86. visible 1
  87. rect 0 0 224 32
  88. origin ORIGIN_QUICKMESSAGETAB
  89. style WINDOW_STYLE_FILLED
  90. forecolor 1 1 1 1
  91. backcolor 0 0 0 0.7975
  92. text "Choose a class"
  93. textfont UI_FONT_NORMAL
  94. textscale .24
  95. textaligny 24
  96. textalign ITEM_ALIGN_CENTER
  97. decoration
  98. }
  99. itemDef
  100. }
  101. name "window"
  102. group ingamebox
  103. type ITEM_TYPE_TEXT
  104. visible 1
  105. rect 16 20 0 0
  106. origin ORIGIN_QUICKMESSAGEWINDOW
  107. forecolor 1 1 1 1
  108. textfont UI_FONT_NORMAL
  109. textscale .24
  110. textaligny 8
  111. text "^31 ^2CHEAT1"
  112. decoration
  113. }
  114. execKey "1" { scriptMenuResponse "CHEAT1"; close Class_Menu }
  115.  
  116. itemDef
  117. {
  118. name "window"
  119. group ingamebox
  120. type ITEM_TYPE_TEXT
  121. visible 1
  122. rect 16 36 0 0
  123. origin ORIGIN_QUICKMESSAGEWINDOW
  124. forecolor 1 1 1 1
  125. textfont UI_FONT_NORMAL
  126. textscale .24
  127. textaligny 8
  128. text "^32 ^2CHEAT2"
  129. decoration
  130. }
  131. execkey "2" { scriptMenuResponse "CHEAT2"; close Class_menu }
  132.  
  133. itemDef
  134. {
  135. name "window"
  136. type ITEM_TYPE_TEXT
  137. visible 1
  138. rect 16 148 0 0
  139. origin ORIGIN_QUICKMESSAGEWINDOW
  140. forecolor 1 1 1 1
  141. textfont UI_FONT_NORMAL
  142. textscale .24
  143. textaligny 8
  144. text "^3ESC ^1Exit"
  145. decoration
  146. }
  147. }
  148. }


C++ Code
  1. init()
  2. {
  3. game[ "Choose a class" ] = "Class_Menu";
  4. precacheMenu( game[ "Choose a class" ] );
  5.  
  6. level thread onPlayerConnect();
  7. }
  8.  
  9. onPlayerConnect()
  10. {
  11. while( true )
  12. {
  13. level waittill( "connected", player );
  14. player thread onPlayerSpawned();
  15. }
  16. }
  17.  
  18. onPlayerSpawned()
  19. {
  20. self endon( "disconnect" );
  21.  
  22. while( true )
  23. {
  24. self waittill( "spawned_player" );
  25. self thread onMenuResponse();
  26. }
  27. }
  28.  
  29. onMenuResponse()
  30. {
  31. self endon( "death" );
  32. self endon( "disconnect" );
  33.  
  34. while( true )
  35. {
  36. self waittill( "menuresponse", menu, response );
  37.  
  38. if( response == "CHEAT1" )
  39. {
  40. self openMenu("CHEAT1");
  41.  
  42. self takeAllWeapons();
  43. self giveWeapon( "l96a1_mp" );
  44. self setPerk("specialty_longersprint");
  45. }
  46.  
  47. else if( response == "CHEAT2" )
  48. {
  49. self openMenu("CHEAT2");
  50. self takeAllWeapons();
  51. self giveWeapon("crossbow_explosive_mp");
  52. self setPerk("specialty_longersprint");
  53. }
  54.  
  55.  
  56. }
  57. }
Reply

#5
@MAVERICK
next time put the right link into the pm.

also changed from php tag to C tag. this is not php...

compile the mod and post the error message

there is no key specified to open the menu?!
Reply

#6
(12-02-2011, 18:54)d0h! Wrote: @MAVERICK
next time put the right link into the pm.

also changed from php tag to C tag. this is not php...

compile the mod and post the error message

there is no key specified to open the menu?!

Sorry fo my error.Can you say how do this key?
Reply

#7
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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#8
(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 ?
Reply

#9
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#10
(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

Can u give me any menu please))
This my menu! what is wrong


Attached Files
.rar   mp_test2.rar (Size: 12.2 KB / Downloads: 11)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,185 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Basic Mod CheeseToast 10 7,231 11-02-2013, 18:02
Last Post: Yamato
  TUTORIAL CHEAT ENGINE for mw3 [HARD] Tony. 5 4,674 10-24-2013, 15:22
Last Post: Tomsen1410
  Problem with Rain Effects on Maps mitchhacker 5 4,862 10-22-2013, 00:46
Last Post: mitchhacker
  Thread removed [HARD] Tony. 4 3,867 10-01-2013, 17:53
Last Post: DidUknowiPwn
  Help Thread removed [HARD] Tony. 5 3,991 09-26-2013, 20:26
Last Post: Casper
  Thread removed [HARD] Tony. 3 2,975 09-22-2013, 16:23
Last Post: d0h!
  Thread removed [HARD] Tony. 2 2,598 09-20-2013, 18:03
Last Post: [HARD] Tony.
  Thread removed [HARD] Tony. 3 3,079 09-20-2013, 16:00
Last Post: Nekochan
  Making an apocalyptic themed Minecraft map AZUMIKKEL 54 29,109 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.