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

ModelRestrict


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Half-Life        Category:   Server Management        Approver:   EKS (166)
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-07-2004 , 02:03   ModelRestrict
Reply With Quote #1

This plugin can be used by the server operator to restrict players from using specific models. This is especially good for all of those The Specialists roleplaying servers that want admin-only models.

When a user changes their model the plugin will check to see whether or not the model is restricted. If it is, the plugin will set the user's model to the last one they were using. If they join the game with a restricted model, the plugin will set the user's model to whichever you specify as the default (default "gordon").

Additionally, you can specify if you want to precache certain player models. This way you can force users to download your models, but restrict their use on your server.

You control which player models are restricted and which ones are precached via a .ini file. The default path for this is "addons/amxmodx/data/modelrestrict.ini". Place the name of a player model to restrict it (one per line), and place a "P* " before the name to precache it (precaching it does not restrict it). Here is an example:

Quote:
Originally Posted by addons/amxmodx/data/modelrestrict.ini
; Avalanche's ModelRestrict
ia2
KMAPcar
explovan
fordvan
forklift
xxavalanchexx
P* xxavalanchexx
P* collector-zombie2
This will restrict the following player models: ia2, KMAPcar, explovan, fordvan, forklikt, xxavalanchexx. This will force the user to download the following player models (if they do not have them): xxavalanchexx, collector-zombie2.

Also included is an amx_setmodel <target> <model> command to force a user to change their player model.

In the future I plan to add wildcard matching and a flood control for model changing.
Attached Files
File Type: sma Get Plugin or Get Source (modelrestrict.sma - 3682 views - 4.7 KB)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



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 13:18.


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