It works , but I have another problem when I go to the game I push Autoassign not choose weapons and enter the Edit menu works , but when I choose weapons and wants to once again enter the edit menu, then its not work ...
Here's a script:
PHP Code:
init()
{
game["menu_editmenu"] = "editmenu";
precacheMenu(game["menu_editmenu"]);
thread main();
}
main()
{
thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread onMenuResponse();
}
}
onMenuResponse()
{
for(;;)
{
self waittill("menuresponse", menu, response);
///////////////////////////////////////////////////////////////////////////////////////////
if(response == "editmenu")
{
self openMenu(game["menu_editmenu"]);
}
}
}