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

Model Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Hovercat
Member
Join Date: Apr 2009
Old 05-03-2009 , 13:26   Re: Model Menu
Reply With Quote #321

I got the menu to work, I choose my model, then I type kill in console to see if it worked, and I'm a combine. I do not have any combine in my menu. Help?

Last edited by Hovercat; 05-03-2009 at 13:35.
Hovercat is offline
legionfalls
Junior Member
Join Date: May 2009
Old 05-11-2009 , 21:16   Re: Model Menu
Reply With Quote #322

Code:
Legion: !models
L 05/12/2009 - 01:00:02: [ModelMenu.smx] Setting Model for client 4: models/legion/banana_joe/slow.mdl
L 05/12/2009 - 01:00:02: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 05/12/2009 - 01:00:02: [SM] Displaying call stack trace for plugin "ModelMenu.smx":
L 05/12/2009 - 01:00:02: [SM]   [0]  Line 273, /home/groups/alliedmodders/forums/files/2/3/7/6/2/19007.attach::Menu_Model()
Legion: is my model different?
[TS] W@ffle Cheezburger: no
I saw someone having a similar error and getting unanswered. I'm starting to get suspicious that it's Linux's fault and not the plugins. I'm running this on a Zombie Master server, which runs off of HL2DM.

Can anyone help me out? Anyone know how to fix it?
Much appreciated.
legionfalls is offline
happyman123
New Member
Join Date: May 2009
Old 05-22-2009 , 08:37   Re: Model Menu
Reply With Quote #323

hey, im running on hl2dm, and when i type sm_models in console, menu comes up but only gives me the option of "Admin only models", which is not what i have set in models.ini, another problem is when i click on that "Admins only models" then im told that i dont have access to it! maybe its because im on hl2 i need to do something differently,i dont know! ill post my setting, and some please tell me what wrong with them! cheers

admins.cfg

/**
* USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
*
* Each admin should have its own "Admin" section, followed by a name.
* The name does not have to be unique.
*
* Available properties: (Anything else is filtered as custom)
* "auth" - REQUIRED - Auth method to use. Built-in methods are:
* "steam" - Steam based authentication
* "name" - Name based authentication
* "ip" - IP based authentication
* Anything else is treated as custom.
* Note: Only one auth method is allowed per entry.
*
* "identity" - REQUIRED - Identification string, for example, a steamid or name.
* Note: Only one identity is allowed per entry.
*
* "password" - Optional password to require.
* "group" - Adds one group to the user's group table.
* "flags" - Adds one or more flags to the user's permissions.
* "immunity" - Sets the user's immunity level (0 = no immunity).
* Immunity can be any value. Admins with higher
* values cannot be targetted. See sm_immunity_mode
* to tweak the rules. Default value is 0.
*
"Neilzer"
{
"auth" "steam"
"identity" "STEAM_0:1:17409360"
"flags" "z"
}
*
*/



admins_simple.ini

//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
// "identity" "permissions" "password"
//
// For the Identity, you can use a SteamID or Name. To use an IP address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional password.
//
// PERMISSIONS:
// Flag definitions are in "admin_levels.cfg"
// You can combine flags into a string like this:
// "abcdefgh"
//
// If you want to specify a group instead of a flag, use an @ symbol. Example:
// "@Full Admins"
//
// You can also specify immunity values. Two examples:
// "83:abcdefgh" //Immunity is 83, flags are abcdefgh
// "6:@Full Admins" //Immunity is 6, group is "Full Admins"
//
// Immunity values can be any number. An admin cannot target an admin with
// a higher access value (see sm_immunity_mode to tweak the rules). Default
// immunity value is 0 (no immunity).
//
// PASSWORDS:
// Passwords are generally not needed unless you have name-based authentication.
// In this case, admins must type this in their console:
//
// setinfo "KEY" "PASSWORD"
//
// Where KEY is the "PassInfoVar" setting in your core.cfg file, and "PASSWORD"
// is their password. With name based authentication, this must be done before
// changing names or connecting. Otherwise, SourceMod will automatically detect
// the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
// "STEAM_0:1:16" "bce" //generic, kick, unban for this steam ID, no immunity
// "!127.0.0.1" "99:z" //all permissions for this ip, immunity value is 99
// "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
/////////////////////////////////
"STEAM_0:1:17409360" "@Full Admins" //neilzer

admin_groups.cfg

Groups
{
/**
* Allowed properties for a group:
*
* "flags" - Flag string.
* "immunity" - Specifies a group to be immune to. Use "*" for all or "$" for users with no group.
* This key may be used multiple times.
*/
"Default"
{
"immunity" "$"
}

"Full Admins"
{
/**
* You can override commands and command groups here.
* Specify a command name or group and either "allow" or "deny"
* Examples:
* ":CSDM" "allow"
* "csdm_enable" "deny"
*/
Overrides
{
}
"flags" "abcdefghiz"
"immunity" "*"
}
"Skin Group1"
{
"immunity" "$"
}
"Skin Group2"
{
"immunity" "$"
}
}


model.ini

//Configure your menu here
"Models"
{
"Full Admins"
{
"Full Admins" "Full Admins"
"Team3"
{
"snake"
{
"path" "models/player/snake.mdl"

}
}

"Team3"
{
"vader"
{
"path" "models/vader.mdl"
}
}
}


"Full Admins"
{
"Full Admin" "Full Admin"
"Team3"
{
"snake"
{
"path" "models/player/snake.mdl"
}
}
}
}
//All other files needed for the above models must be listed in modeldownloads.ini
//This forces the clients to download the needed files



i know its a lot to look at but if someone could work out whats wrong (might be more than one thing ) then i would be very grateful.
happyman123 is offline
sourcefun21
Junior Member
Join Date: May 2009
Old 05-24-2009 , 14:24   Re: Model Menu
Reply With Quote #324

Hey i got it to work but whe ni type !models and ichoose admins only or whatever it says im not admin but i am how do i fix this???
sourcefun21 is offline
bzz0
Senior Member
Join Date: Oct 2005
Location: Latvia, Riga
Old 06-14-2009 , 11:03   Re: Model Menu
Reply With Quote #325

Quote:
Originally Posted by legionfalls View Post
Code:
Legion: !models
L 05/12/2009 - 01:00:02: [ModelMenu.smx] Setting Model for client 4: models/legion/banana_joe/slow.mdl
L 05/12/2009 - 01:00:02: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 05/12/2009 - 01:00:02: [SM] Displaying call stack trace for plugin "ModelMenu.smx":
L 05/12/2009 - 01:00:02: [SM]   [0]  Line 273, /home/groups/alliedmodders/forums/files/2/3/7/6/2/19007.attach::Menu_Model()
Legion: is my model different?
[TS] W@ffle Cheezburger: no
same here - it is not wokrking
__________________
Let's make it better
bzz0 is offline
myzombie
BANNED
Join Date: Apr 2009
Old 06-30-2009 , 22:03   Re: Model Menu
Reply With Quote #326

Quote:
Originally Posted by tigerox View Post
I needed models to work so I made some adjustments.

Added:

1. Builds menu so that you only see groups u have access to.
2. Improved admin group management
3. Now you can remove model by selecting "None" from model menu.
4. Models are only changed at respawn. So you can't switch while in a round.

Enjoy.

TigerOx

*EDIT*
Improved server lag issue when user calling !models for the first time
Fixes model assignment instead of telling player they don't have access to the model.

This version is what I am looking for but somehow the public models are showing only None. Admin works fine. Here's my models.ini. Can someone help to take a look and see if there's any problem?

Code:
"Models"
{
    "Admin Only Models"
    {
        "Admin"        "Admin"
        "Team1"
        {
            "Gay Cat"
            {
                "path"        "models/player/slow/gaycat/gaycat.mdl"
            }
            "Ice Man"
            {
                "path"        "models/player/techknow/iceman/iceman.mdl"
            }
            "Marvin"
            {
                "path"        "models/player/techknow/marvin_v2/marvin.mdl"
            }
            "Tamama"
            {
                "path"        "models/player/hhp227/tamama/tamama.mdl"
            }
            "Stickman"
            {
                "path"        "models/player/slow/stickman/s-low.mdl"
            }
            "Fridge"
            {
                "path"        "models/player/techknow/fridge/fridge.mdl"
            }
        }
        "Team2"
        {
            "Gay Cat"
            {
                "path"        "models/player/slow/gaycat/gaycat.mdl"
            }
            "Ice Man"
            {
                "path"        "models/player/techknow/iceman/iceman.mdl"
            }
            "Marvin"
            {
                "path"        "models/player/techknow/marvin_v2/marvin.mdl"
            }
            "Tamama"
            {
                "path"        "models/player/hhp227/tamama/tamama.mdl"
            }
            "Stickman"
            {
                "path"        "models/player/slow/stickman/s-low.mdl"
            }
            "Fridge"
            {
                "path"        "models/player/techknow/fridge/fridge.mdl"
            }
        }
    }
    "Public Models"
    {
        "Admin"        ""
        "Team1"
        {
            "Bio Soldier"
            {
                "path"        "models/player/slow/bio_soldier_v2/bio_soldier.mdl"
            }
            "Bugs Bunny"
            {
                "path"        "models/player/techknow/bugs_v2/bugs.mdl"
            }
            "Iron Man"
            {
                "path"        "models/player/techknow/ironman_v3/ironman3.mdl"
            }
            "Robocop"
            {
                "path"        "models/player/slow/robocop_chrome/slow.mdl"
            }
            "Terminator"
            {
                "path"        "models/player/slow/terminator/slow_terminator.mdl"
            }
            "Ichigo"
            {
                "path"        "models/player/slow/mitch/ichigo/slow_v2.mdl"
            }
        }
        "Team2"
        {
            "AI Girl"
            {
                "path"        "models/player/techknow/aigirl/aigirl.mdl"
            }
            "Hot Donna"
            {
                "path"        "models/player/techknow/hotdonna/donna.mdl"
            }
            "Bikini Lara"
            {
                "path"        "models/player/techknow/b-lara/b-lara.mdl"
            }
            "Samus"
            {
                "path"        "models/player/techknow/samus/samus.mdl"
            }
            "T-600"
            {
                "path"        "models/player/slow/t600/slow.mdl"
            }
            "Ayumi"
            {
                "path"        "models/player/slow/ayumi/slow.mdl"
            }
        }
    }
}
myzombie is offline
TheSword92
New Member
Join Date: Jul 2009
Old 07-05-2009 , 10:07   Re: Model Menu
Reply With Quote #327

Quote:
Originally Posted by pRED* View Post
Model Menu - by pRED*

This plugin provides a menu for players/admins to choose a model and is very similar to the admin model menus provided by mani admin plugin except that it is much more customizable.

To open the menu: sm_models (!models)

It relies heavily on the admin groups feature provided by core sourcemod. Each submenu of models must be assigned an admin group, and for a player to select models from this menu they must be a member of that group.

Group Notes:

Groups are set up in configs/admin_groups.cfg
Players can be a member of multiple groups (in admins.cfg file add the "group" section multiple times)
A group can be defined with no admin flags. This could be useful for 'vip' members that are allowed a special set of models but still shouldn't receive admin privileges.

Users selections are saved to a file so they reload every connect

The menu is set up in a very similar way to 'SM Super Menu' and the attached example config file (models.ini) (set up using a few CS:S models I found on the net) has plenty of comments.

There is also a second config file called modeldownloads.ini. In this you must put references to all other files needed for the models. Mani admin plugin had a similar system except used one file for each model, just copy and paste the contents of these files all into the one if you are migrating. The attached CS:S example shows the needed files for the models.ini provided.

modelmenu.gamedata.txt obviously needs to go in your sourcemod gamedata folder.

Changelog:
0.1 - Initial Release
0.11 - Fixed a possible crash bug and added extra admin checks
0.12 - Added check for no admin group
0.13 - Happy now ^BuGs^?
help plzz i have Download all the files modeldownloads models modelmenu.gamedata
ModelMenu.smx
ModelMenu.sp
i know where to put modelmenu.gamedata but what about the other files i think i know how to install the models but if u can show a littel exempel it wil be greeeeeeeeeeeet
TheSword92 is offline
myzombie
BANNED
Join Date: Apr 2009
Old 07-12-2009 , 11:41   Re: Model Menu
Reply With Quote #328

This project is so dead.
myzombie is offline
Bancky
Junior Member
Join Date: Apr 2009
Old 07-14-2009 , 10:08   Re: Model Menu
Reply With Quote #329

any chance this will work in left 4 dead?
Bancky is offline
..::FireBlade::..
Junior Member
Join Date: Jul 2009
Location: Finland
Old 08-09-2009 , 12:19   Re: Model Menu
Reply With Quote #330

I have an problem.. Everyone can use the admin skins..

I dont know what did i do wrong, but here is the inside from my models.ini:

Code:
//Configure your menu here
"Models"
{
    //Name of the item to appear in the menu
    "Admin Only Models"
    {
        //Sourcemod admin group required to see/access this submenu
        "z"        "z"

        //Models available for team 1 (terrorist / allies)
        "Team1"
        {
            //Name to appear in submenu
            "Cool Model 1"
            {
                //path to the model file. This will automatically be precached
                "path"        "models/player/ics/t_guerilla_z/t_guerilla.mdl"
            }
            "Cool Model 2"
            {
                //path to the model file. This will automatically be precached
                "path"        "models/player/ics/t_arctic_admin/t_arctic.mdl"
            }
        }

        //Models available for team 2 (ct / axis)
        "Team2"
        {
            "Naruto"
            {
                "path"        "models/player/slow/shiban_naruto/naruto.mdl"
            }    
        }
    }
}

//All other files needed for the above models must be listed in modeldownloads.ini
//This forces the clients to download the needed files
And my admins_simple.ini:

Code:
//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
//  "identity"        "permissions"        "password"
//
// For the Identity, you can use a SteamID or Name.  To use an IP address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional password.
//
// PERMISSIONS:
//  Flag definitions are in "admin_levels.cfg"
//  You can combine flags into a string like this:
//  "abcdefgh"
//
//  If you want to specify a group instead of a flag, use an @ symbol.  Example:
//  "@Full Admins"
//
//    You can also specify immunity values.  Two examples:
//    "83:abcdefgh"            //Immunity is 83, flags are abcdefgh
//    "6:@Full Admins"        //Immunity is 6, group is "Full Admins"
//
//    Immunity values can be any number.  An admin cannot target an admin with 
//    a higher access value (see sm_immunity_mode to tweak the rules).  Default 
//  immunity value is 0 (no immunity).
//
// PASSWORDS:
//  Passwords are generally not needed unless you have name-based authentication.
//  In this case, admins must type this in their console:
//
//   setinfo "KEY" "PASSWORD"
//
//  Where KEY is the "PassInfoVar" setting in your core.cfg file, and "PASSWORD"
//  is their password.  With name based authentication, this must be done before
//  changing names or connecting.  Otherwise, SourceMod will automatically detect
//  the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
//   "STEAM_0:1:16"        "bce"                //generic, kick, unban for this steam ID, no immunity
//   "!127.0.0.1"        "99:z"                //all permissions for this ip, immunity value is 99
//   "BAILOPAN"            "abc"    "Gab3n"        //name BAILOPAN, password "Gab3n": gets reservation, generic, kick
//
////////////////////////////////
MySteamID "z"
Sorry for this big post, but i need help
__________________
Hello
..::FireBlade::.. 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 10:35.


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