Hey guys..
I'm trying to add a small admin menu to my mod.
I want that its only possible to open the menu for specific guids.
So i created a menu file and changed wm_quickmessage
In _menus.gsc onMenuResponse() i added:
Code:
if(response == "admin")
{
if(self getGuid() == 0)
{
self playLocalSound("granted");
self openMenu(game["menu_admin"]);
}
else
{
self iprintlnbold("^1Access Denied!");
self playLocalSound("denied");
}
continue;
}
If i open the menu it plays the sound but it wont open the menu..
I precached the menu and if i open it directly without scriptMenuResponse "admin" everything is working
Whats wrong?
Sorry for my bad english! :x