Raised This Month: $ Target: $400
 0% 

SM Super Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Onix.fr
Member
Join Date: Nov 2006
Location: Mer, (FRANCE) 41
Old 07-25-2007 , 16:51   Re: SM Super Menu
Reply With Quote #71

Code:
"2"
        {
            "title"            "Definir la prochaine Map"
            "cmd"            "sm_nextmap #1"
            "1"
            {
                "type"        "mapcycle"
            }
        }
Don't works very well.

My mapcyle.txt in cstrike folder is :

Quote:
de_aztec
de_cbble
de_chateau
de_contra
de_cpl_mill
de_dust
de_dust2
de_inferno
de_nuke
de_piranesi
de_port
de_prodigy
de_tides
de_train
But option display only de_train in map menu.

Have you an explain off this bug ?

If I put this :

Code:
"2"
        {
            "title"            "Definir la prochaine Map"
            "cmd"            "sm_nextmap #1"
            "1"
            {
                "type"        "list"
                "title"        "Choisissez la Map"
                "1"            "de_aztec"
                "2"            "de_cbble"
                "3"            "de_chateau"
                "4"            "de_dust"
                "5"            "de_dust2"
                "6"            "de_inferno"
                "7"            "de_nuke"
                "8"            "de_piranesi"
                "9"            "de_port"
                "10"        "de_prodigy"
                "11"        "de_tides"
                "12"        "de_train"
            }
        }
It's very well
Onix.fr is offline
Onix.fr
Member
Join Date: Nov 2006
Location: Mer, (FRANCE) 41
Old 07-25-2007 , 16:54   Re: SM Super Menu
Reply With Quote #72

pRED : Can you explain how use the @num in smsuper.ini ?

In english but don't use a lot off words (I'm French)
Onix.fr is offline
HO!NO!
Junior Member
Join Date: Apr 2006
Location: Québec
Old 07-25-2007 , 18:04   Re: SM Super Menu
Reply With Quote #73

Onix.fr la fonction @ ne marche pas encore...
elle est suposer fonctioné comme ca

"cmd" "sm_restrict item team @1"

@1 a la place de #1 tout simplement.

pRED* | NZ the "type" "mapcycle"
crash nearly my server... any idea????
HO!NO! is offline
Send a message via ICQ to HO!NO! Send a message via MSN to HO!NO!
Onix.fr
Member
Join Date: Nov 2006
Location: Mer, (FRANCE) 41
Old 07-26-2007 , 02:02   Re: SM Super Menu
Reply With Quote #74

Quote:
Originally Posted by HO!NO! View Post
Onix.fr la fonction @ ne marche pas encore...
elle est suposer fonctioné comme ca

"cmd" "sm_restrict item team @1"

@1 a la place de #1 tout simplement.

pRED* | NZ the "type" "mapcycle"
crash nearly my server... any idea????
Ok merci à toi. J'attends donc une release
Onix.fr is offline
flash3
New Member
Join Date: Jul 2007
Old 07-27-2007 , 12:58   Re: SM Super Menu
Reply With Quote #75

idk what im doing wrong

i just start the server and after liek 10-15 mins

it just crashes giving me some "0x6f207473" error



is this me or are alot of people getting the same/similar problem?
flash3 is offline
dmw_Whitey
Junior Member
Join Date: Aug 2007
Old 08-02-2007 , 16:39   Re: SM Super Menu
Reply With Quote #76

Quote:
Originally Posted by Onix.fr View Post
Code:
"2"
        {
            "title"            "Definir la prochaine Map"
            "cmd"            "sm_nextmap #1"
            "1"
            {
                "type"        "mapcycle"
            }
        }
Don't works very well.

My mapcyle.txt in cstrike folder is :

But option display only de_train in map menu.
I have a similar problem but I don't get anything in the list, however the server has the following:
Code:
CModelLoader::Map_IsValid:  No such map 'de_dust2
'
CModelLoader::Map_IsValid:  No such map 'de_dust
'
CModelLoader::Map_IsValid:  No such map 'de_aztec
'
CModelLoader::Map_IsValid:  No such map 'cs_office
'
Those are the only maps I have listed in the mapcycle.
dmw_Whitey is offline
dr1ft3r
Member
Join Date: Aug 2007
Old 08-02-2007 , 17:42   Re: SM Super Menu
Reply With Quote #77

Hi I was wondering if before I uploaded this to my server and get it wrong you could tell me if there are any problems in how I have formatted the changes I've made

Basically I was wondering, I've set the "fun commands" menu to custom5 flag, so I know only those with custom5 flag can access it, I've put custom6 flags in alot of the cmds under it. Will this cause any problems? Obviously someone who has custom 5 flag wouldn't be able to use 1-5, 7, 10-15, but will be able to use 6, 8 and 9, But what will they see? will they see all the options or will 6 8 9 appear as 1,2,3 or will it appear on the first menu page as 6 8 9.

Also generally speaking, do the menu options move up the order when the ones above are not available, so if someone access to options 1, 10, 12 would their menu show 1 on the first page, and 10,12 on the 2nd or would it all be on the first page?
Code:
"Commands"
{
 "title"  "Choose a Category"
 "1"
 {
  "title"  "Fun Commands"
  "admin"  "custom5"
  "1"
  {
   "title"   "Set Player Speed"
   "cmd"   "sm_speed #1 #2"
   "admin"   "custom6"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Edit"
   }
   "2"
   {
    "type"   "list"
    "title"  "Speed Multiplier"
    "1"  "1.0"
    "1."  "Normal"
    "2"  "0.8"
    "2."  "80%"
    "3"  "0.5"
    "3."  "Half"
    "4"  "1.5"
    "4."  "50% Boost"
    "5"  "2.0"
    "5."  "Double"
   }
  }
  "2"
  {
   "title"   "Give Player Weapon"
   "cmd"   "sm_weapon #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"   "player"
    "title"  "Player to Give to"
   }
   "2"
   {
    "type"   "list"
    "title"  "Weapon:"
    "1"  "weapon_ak47"
    "1."  "Ak-47"
    "2"  "weapon_m4a1"
    "2."  "M4A1"
    "3"  "weapon_deagle"
    "3."  "Desert Eagle"
    "4"  "weapon_mp5"
    "4."  "Desert Eagle"
   }
  }
  "3"
  {
   "title"   "Set Player Armour"
   "cmd"   "sm_armour #1 #2"
   "admin"   "custom6"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Edit"
   }
   "2"
   {
    "type"   "list"
    "title"  "Armour:"
    "1"  "0"
    "2"  "20"
    "3"  "50"
    "4"  "80"
    "5"  "100"
   }
  }
  "4"
  {
   "title"   "Set Player HP"
   "cmd"   "sm_hp #1 #2"
   "admin"   "custom6"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Edit"
   }
   "2"
   {
    "type"   "list"
    "title"  "HP:"
    "1"  "1"
    "2"  "20"
    "3"  "50"
    "4"  "80"
    "5"  "100"
    "6"  "150"
    "7"  "200"
   }
  }
  "5"
  {
   "title"   "Bury Player"
   "cmd"   "sm_bury #1"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Bury"
   }
  }
  "6"
  {
   "title"   "UnBury Player"
   "cmd"   "sm_unbury #1"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to UnBury"
   }
  }
  "7"
  {
   "title"   "Respawn Player"
   "cmd"   "sm_respawn #1"
   "admin"   "custom6"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Respawn"
   }
  }
  "8"
  {
   "title"   "Disarm Player"
   "cmd"   "sm_disarm #1"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Disarm"
   }
  }
  "9"
  {
   "title"   "Burn and Disarm"
   "cmd"   "sm_burn #1 #2;sm_disarm #1"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Burn"
   }
   "2"
   {
    "type"   "list"
    "title"  "Time:"
    "1"  "0"
    "2"  "5"
    "3"  "10"
    "4"  "20"
    "5"  "30"
   }
  }
  "10"
  {
   "title"   "Set Player Gravity"
   "cmd"   "sm_gravity #1 #2"
   "admin"   "custom6"
   "execute"  "player"
   "1"
   {
    "type"   "teamplayer"
    "method" "name"
    "title"  "Player/Team to Edit"
   }
   "2"
   {
    "type"   "list"
    "title"  "Speed Multiplier"
    "1"  "1.0"
    "1."  "Normal"
    "2"  "0.8"
    "2."  "80%"
    "3"  "0.5"
    "3."  "Half"
    "4"  "1.5"
    "4."  "50% Boost"
    "5"  "0.25"
    "5."  "Quarter"
   }
  }
  "11"
  {
   "title"   "Set Player No-Clip"
   "cmd"   "sm_noclip #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"  "teamplayer"
   }
   "2"
   {
    "type"  "list"
    "1"  "1"
    "1."  "On"
    "2"  "0"
    "2."  "Off"
   }
  }
  "12"
  {
   "title"   "Set Player God"
   "cmd"   "sm_god #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"  "teamplayer"
   }
   "2"
   {
    "type"  "list"
    "1"  "1"
    "1."  "On"
    "2"  "0"
    "2."  "Off"
   }
  }
  "13"
  {
   "title"   "Set Player NightVision"
   "cmd"   "sm_nv #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"  "teamplayer"
   }
   "2"
   {
    "type"  "list"
    "1"  "1"
    "1."  "Give"
    "2"  "0"
    "2."  "Take"
   }
  }
  "14"
  {
   "title"   "Set Player Helmet"
   "cmd"   "sm_helmet #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"  "teamplayer"
   }
   "2"
   {
    "type"  "list"
    "1"  "1"
    "1."  "Give"
    "2"  "0"
    "2."  "Take"
   }
  }
  "15"
  {
   "title"   "Set Player Defuse Kit"
   "cmd"   "sm_defuser #1 #2"
   "admin"   "custom6"
   "1"
   {
    "type"  "teamplayer"
   }
   "2"
   {
    "type"  "list"
    "1"  "1"
    "1."  "Give"
    "2"  "0"
    "2."  "Take"
   }
  }
 
 }
 "2"
 {
  "title"  "Basic Admin Commands"
  "1"
  {
   "title"  "Ban Player"
   "cmd"  "sm_ban #1 #2 #3"
   "admin"  "ban"
   "1"
   {
    "type"   "player"
   }
   "2"
   {
    "type"  "list"
    "title"  "Duration:"
    "1"  "0"
    "1."  "Permanent"
    "2"  "5"
    "2."  "5 Minutes"
    "3"  "60"
    "3."  "An Hour"
   }
   "3"
   {
    "type"  "list"
    "title"  "Reason:"
    "1"  "Wall Hacks"
    "2"  "Aimbot"
    "3"  "Exploiting"
    "4"  "Team Attacking"
    "5"  "Ignoring Admin"
   }
  }
  "2"
  {
   "title"  "Kick Player"
   "cmd"  "sm_kick #1 #2"
   "admin"  "kick"
   "1"
   {
    "type"  "player"
   }
   "2"
   {
    "type"  "list"
    "title"  "Reason:"
    "1"  "Swearing"
    "2"  "Racist"
   }
  }
 }
 "3"
 {
  "title"  "Map managment"
  "admin"  "changemap"
  "1"
  {
   "title"   "Map Limit"
   "cmd"   "mp_maxrounds #1; mp_winlimit #2"
   "execute"  "server"
   "1"
   {
    "type"   "list"
    "title"  "Maxrounds"
    "1"  "35"
    "2"  "45"
   }
   "2"
   {
    "type"  "list"
    "title"  "Winlimit"
    "1"  "22"
    "2"  "29"
  }
  "2"
  {
   "title"   "Next Map"
   "cmd"   "sm_nextmap #1"
   "execute"  "server"
   "1"
   {
    "type"   "list"
    "title"  "Set Next Map"
    "1"  "de_dust2"
    "2"  "de_nuke"
    "3"  "cs_italy"
    "4"  "cs_office"
 
   }
  }
 
 }
}

Last edited by dr1ft3r; 08-02-2007 at 17:46.
dr1ft3r is offline
twitchor
Junior Member
Join Date: Aug 2007
Old 08-03-2007 , 13:13   Re: SM Super Menu
Reply With Quote #78

Hi,
This is my first sourcemod server (DoD:S), so am a bit of a noob.
I have installed the base fine but have a problem with the Mod..

If I am posting in the wrong place please say..

So...

The problem..

If I Kick or ban anyone the server crashes..

The commands for kick and ban work fine in console..

I do get these errors in the logs..


[SM] Native "GetUserAdmin" reported: Client 1 is not connected
[SM] Displaying call stack trace:
[SM] [0] Line 277, C:\Documents and Settings\Administrator\Desktop\test\sm_super_ menu.sp::buildsubmenu()
[SM] [1] Line 468, C:\Documents and Settings\Administrator\Desktop\test\sm_super_ menu.sp:aramCheck()
[SM] [2] Line 495, C:\Documents and Settings\Administrator\Desktop\test\sm_super_ menu.sp::Menu_Selection()

Help please.

Let me know if you need anymore info

Thanks
twitchor is offline
dmw_Whitey
Junior Member
Join Date: Aug 2007
Old 08-04-2007 , 09:51   Re: SM Super Menu
Reply With Quote #79

Quote:
Originally Posted by Onix.fr View Post
Code:
"2"
        {
            "title"            "Definir la prochaine Map"
            "cmd"            "sm_nextmap #1"
            "1"
            {
                "type"        "mapcycle"
            }
        }
Don't works very well.

My mapcyle.txt in cstrike folder is :

But option display only de_train in map menu.

Have you an explain off this bug ?
The problem is caused by the carriage return/Line Feed in Windows.
I added a TrimString to the code and it now works for me!
Code:
        if (strncmp(type,"mapcycle",4)==0)
        {
            new Handle:hFile = OpenFile("mapcycle.txt", "rt");
            new String:szReadData[128];
            if(hFile == INVALID_HANDLE)
            {
                return;
            }
            while(!IsEndOfFile(hFile) && ReadFileLine(hFile, szReadData, sizeof(szReadData)))
            {
                TrimString(szReadData);
                if (IsMapValid(szReadData))
                    AddMenuItem(itemmenu, szReadData, szReadData)
            }
        }
dmw_Whitey is offline
twitchor
Junior Member
Join Date: Aug 2007
Old 08-04-2007 , 10:45   Re: SM Super Menu
Reply With Quote #80

No one....
twitchor is offline
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 16:34.


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