Raised This Month: $51 Target: $400
 12% 

SM Super Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 11-28-2007 , 14:13   Re: SM Super Menu
Reply With Quote #321

Hello pRED*,

it seems to work now 90%-100% I think 100% , but i am not sure yet, need some more tests. Thanks for the fast fix.

But now i found another bug.
Extend Map, doen't appear in the Main "Server Commands"
In the smssuper.ini
it looks like this:
"ServerCommands"
{
"Extend Map"
{
"cmd" "sm_extend #1"
"1"
{
"type" "list"
"title" "Extend for:"
"1" "5"
"1." "5 Minutes"
"2" "10"
"2." "10 Minutes"
"3" "15"
"3." "15 Minutes"
"4" "20"
"4." "20 Minutes"
"5" "30"
"5." "Half an Hour"
"6" "45"
"6." "45 Minutes"
"7" "60"
"7." "An Hour"
}
}
}

Seems to be correct.
But as i said, it don't appear.
But then, i changed the name (because i thought maybe its a typo)
from "ServerCommands" to "Server Commands"
now, that menü appears twice.
And on the second menu its working now.
Hmm.
Manni is offline
Send a message via ICQ to Manni
pRED*
Join Date: Dec 2006
Old 11-28-2007 , 15:14   Re: SM Super Menu
Reply With Quote #322

Oh sorry, I fixed this bug yesterday.


Try this version
pRED* is offline
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 11-28-2007 , 15:54   Re: SM Super Menu
Reply With Quote #323

Yes! That works great. Thank you.
All is 95% fine now


There is still a little problem, but i am not sure, if i made something wrong. Sometimes, but very rare, the whole menu were disappeared
then i need to unload_ALL plugins, and refresh. Then it works good again.

Only the sm_super_menu unload and load don't work.
Maybe other plugin(s) are disturbing into it. I am not sure.


Thx for the good work!
Manni is offline
Send a message via ICQ to Manni
pRED*
Join Date: Dec 2006
Old 11-28-2007 , 17:36   Re: SM Super Menu
Reply With Quote #324

Ok I'll try looking into that for you.

Two things: try unloading both super menu and adminmenu.sp then reload adminmenu then super menu and see if that fixes the problem (next time it happens that is)

Can you try figure out what causes it to disappear.. Any possible reason at all to help narrow down the search.
pRED* is offline
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 11-29-2007 , 19:13   Re: SM Super Menu
Reply With Quote #325

Hmm, i couldn't reproduce it. So thats a good sign

It's still working good until now.
If something is wrong again, i'll let you know.
So you don't need to look into it.

Thank you!
Manni is offline
Send a message via ICQ to Manni
pRED*
Join Date: Dec 2006
Old 11-30-2007 , 21:26   Re: SM Super Menu
Reply With Quote #326

PROPERLY UPDATED TO VERSION 0.5

Command sm_super has been removed and all super menu items are now added to the main sm_admin menu.

See the top of sm_super_menu.sp for lots of documentation details (including how to get items into the existing categories)

Upgrade Notes:

Only one change needs to be made to the smsuper.ini file. The 'title' param has been removed and items/categories now inherit the name of the section.

so instead of

"1"
{
"title" "hi"
..

do:

"hi"
{
...

See the example smsuper.ini for further info.

New menu type 'onoff' has been added. Just sends the command as 1/0 (good for cvars etc)

Read the top of the sm_super_menu.sp file for full documentation (yeah I'll add a wiki page at some point)
pRED* is offline
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 12-02-2007 , 20:35   Re: SM Super Menu
Reply With Quote #327

Thank you again for the great work!
The sorting is now working, as you told me how to do it correct.

(to all, use for example
"item" "Extend Map" <- this works
instead of
"item" "sm_extend" <- this don't works)

This Super Menu 0.5 is (for me) 100% an Approved Plugins
(even if the sorting wouldn't work) ^^


Thanks again.




Last edited by Manni; 12-02-2007 at 20:38.
Manni is offline
Send a message via ICQ to Manni
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 12-03-2007 , 08:39   Re: SM Super Menu
Reply With Quote #328

Hello again
Before i forget, i've a suggestion. I don't know if it's possible and whether you like it or not.
Can you add a menu type like 'swapcmd"
I have build a menu, where you can LOAD and UNLOAD Eventscripts. But i have to do it twice. One SubMenu for the es_unload command and one SubMenu for the es_load command. That's repeated unnecessarily :/

For example old submenu:
"Rcon Menu"
{
"Load Scripts:"
{
"cmd" "es_load #1"
"execute" "server"
"1"
{
"type" "list"
"title" "Load EventScripts:"
"1" "mannis_anti_soundspam"
"1." "Sounds ON (Normal 5)"
"2" "mannis_admin_spawn"
"2." "Admin Spawn ON"
}
}
"UnLoad Scripts:"
{
"cmd" "es_unload #1"
"execute" "server"
"1"
{
"type" "list"
"title" "UnLoad EventScripts:"
"1" "mannis_anti_soundspam"
"1." "Sounds OFF (Normal 5)"
"2" "mannis_admin_spawn"
"2." "Admin Spawn OFF"
}
}

For example new submenu:
"Rcon Menu"
{
"Load/Unload Scripts:"
{
"swapcmd" "es_load #1" "es_unload #1"
"execute" "server"
"1"
{
"type" "list"
"title" "Load/Unload EventScripts:"
"1" "mannis_anti_soundspam"
"1." "Sounds ON (Normal 5)"
"2" "mannis_admin_spawn"
"2." "Admin Spawn ON"
}
}


Is this possible?
Or is this already inbuilt and i failed to notice it?

greetings
Manni

Last edited by Manni; 12-03-2007 at 08:41.
Manni is offline
Send a message via ICQ to Manni
pRED*
Join Date: Dec 2006
Old 12-03-2007 , 14:57   Re: SM Super Menu
Reply With Quote #329

How would super menu know which one to use the first time?

Unless you're suggesting I just assume when the server starts the first option will be correct and admins won't edit things using console.

I'll think about it.
pRED* is offline
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 12-04-2007 , 08:36   Re: SM Super Menu
Reply With Quote #330

Indeed, the menu will not know which one to use first.
(and also some normal admins "who are not the server owner, or admins with rcon" could have a few problems to figure out, whether the scripts/plugins are now enabled or disabled)
But it's not so bad.
For example, if i click to load an Eventscripts (and it is already loaded)
there will be only an error message in console like
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first.
In my Eventscripts i have added a say command like "say ... is disabled now" in the block unload and block load.
So everyone can see, whether the script is loaded or not.

The idea is mainly to get rid of so many Categories/Submenus, and to save space.
(you don't want to see my whole menu)
I think, if you'll add this sometime, the people will accustom to it.

Last edited by Manni; 12-04-2007 at 08:39.
Manni is offline
Send a message via ICQ to Manni
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode