Raised This Month: $32 Target: $400
 8% 

Hats


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Emp` (115)
sgtbane
Member
Join Date: Feb 2006
Old 07-24-2007 , 20:42   Hats
Reply With Quote #1

This plugin will allow you to customize your player with a hat/accessory to make them look different then everyone else.

Code:
Commands:
	say /hats		  Bring up the hat menu...
	amx_givehat <name> <hat#> Set a hat manually on someone.
	amx_removehats		  Remove everyone's hat. (Note. Simply disabling the plugin will not remove the hats from the players)
Code:
CVars:
	hat_adminonly	1|0	If set to 1, Only admins can use hats. (Modify the plugin to change the flag required to use them when enabled. Default ADMIN_CHAT)
	hat_adminhats	1|0	If set to 1, if specified in the .ini, certain hats will be admin only. I added this as a cvar so you can setup admin-only hats, and toggle the ability for others to use them easily.
	hat_random	1|0	Randomly pick a hat for people as they join the server.
	hat_bots	1|0	Randomly pick a hat for bots joining the server.
	hat_force	0|#	If set, this will be the model number of the hat that will be forced on everyone in the server. Set to 0 to disable
	hat_glow	0|1|2	If set to 0, no hat glowing will be done by the plugin. If set to 1, the hat will take on the glow color of the player. If set to 2, the hat will glow the color of there team (T=Red, CT=Blue)
And for anyone who is running this mod on there servers, I ask that you please don't go changing names of hats. I have joined a lot of servers that like to rename everything to something like CLANNAMEdunce.mdl and GeorgesPirateHat.mdl and crap like that. If you didn't make the model, don't change its name. It just makes people have to download things they already have just for the namechange. Also, if you don't have a content host, either get one, or please start using less or smaller file sized models...


[Plugin Updated 01/06/2009]

crazyeffect has created a nice compilation of currently created hats in this post if you would like to save time digging through here to find them...

Thanks to strika for noticing, and fysiks for repairing a major flaw in the plugin. Attached is his fixed version.
Attached Files
File Type: zip HatsAndINI.zip (1.24 MB, 47872 views)
File Type: sma Get Plugin or Get Source (Hats_fixed.sma - 38611 views - 11.9 KB)
__________________
[Add|Community]

~SgtBane

Last edited by sgtbane; 05-26-2010 at 19:00.
sgtbane is offline
Send a message via MSN to sgtbane
 


Thread Tools
Display Modes

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 07:14.


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