Raised This Month: $7 Target: $400
 1% 

Hats


Post New Thread Reply   
 
Thread Tools Display Modes
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, 47822 views)
File Type: sma Get Plugin or Get Source (Hats_fixed.sma - 38565 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
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-24-2007 , 21:05   Re: Hats
Reply With Quote #2

zOMG i'm sooo putting this on my server lol

as for the coding:
register_clcmd("say /hats", "ShowMenu", -1, "Shows Knife menu")

otherwise it is good. approval in a couple days.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
redx6580
Senior Member
Join Date: Nov 2005
Location: New Jersey
Old 07-24-2007 , 23:37   Re: Hats
Reply With Quote #3

ROFL, this is hilarious... As for suggestions for hats, ever think of stuff like,
Robin hood had
Darth vadar helmet.
Flower head hat. ( http://www.sshs57.com/photos/JPEGS/0...omicCon-67.jpg )
Graduation cap.
Micky mouse.
Santa cap.
Football helmet.
Cowboy hat.
Beer hat.
Doorag.
The "ghost" hat is a little to far, but not my problem.
Of course you don't need to make all these, just suggestions.
__________________
-LJ
[img]http://img252.**************/img252/3553/sig2wq7.jpg[/img]
Karma is nothing, calm down and stop acting like it's important.
redx6580 is offline
Send a message via AIM to redx6580 Send a message via MSN to redx6580
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 07-24-2007 , 23:51   Re: Hats
Reply With Quote #4

I.
Like.
This.
Very.
Much.
potatis_invalido is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 07-25-2007 , 01:18   Re: Hats
Reply With Quote #5

I'm wondering if this should be expanded any further...

What if you could shoot off someone's hat by delivering a headshot? The hat can drop onto the ground and then you run over it to pick it up again.

Maybe you should just keep it simple, as it is . It's hilarious.
stupok is offline
dxteam
Senior Member
Join Date: Dec 2005
Old 07-25-2007 , 05:49   Re: Hats
Reply With Quote #6

Make plz for example when you wear hat the hat add more hp or speed and etc .
dxteam is offline
Send a message via ICQ to dxteam
ABC3Q
Junior Member
Join Date: Mar 2007
Old 07-25-2007 , 06:26   Re: Hats
Reply With Quote #7

try a version without using the include cstrike so it can be used for all mods instead of just 1.
__________________
| Account has been abandoned |
ABC3Q is offline
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 07-25-2007 , 13:58   Re: Hats
Reply With Quote #8

Here's an idea:
At the start of every round, two random hats are choosen. CTs will have one hat and terrorists will have the other.
potatis_invalido is offline
dxteam
Senior Member
Join Date: Dec 2005
Old 07-25-2007 , 14:02   Re: Hats
Reply With Quote #9

Make plz more hats and ability for them =)
dxteam is offline
Send a message via ICQ to dxteam
NNP
New Member
Join Date: Jul 2007
Old 07-25-2007 , 17:36  
Reply With Quote #10

I run a cs 1.6 standlone server, i got the plugin it loads, but there are no hats loaded, what did i do wrong? add me to steam friends please

noobkillerz
NNP is offline
Reply


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 03:41.


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