Thread
:
Model Menu
View Single Post
Author
Message
pRED*
you suck
Join Date: Dec 2006
08-12-2007 , 04:24 Model Menu
#
1
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^?
Attached Files
Get Plugin
or
Get Source
(ModelMenu.sp - 21844 views - 7.4 KB)
modelmenu.gamedata.txt
(189 Bytes, 12677 views)
models.ini
(935 Bytes, 13970 views)
modeldownloads.ini
(1.1 KB, 11801 views)
Last edited by pRED*; 08-13-2007 at
16:37
.
pRED*
View Public Profile
Send a private message to pRED*
Find More Posts by pRED*