The other versions around here are stolen/noobish
I made the version in which you can easily add or delete hats.
I made this script to test a new method of scripting.
So enjoy
How to add hat:
There will be table on the 4th line.
1
2
3
4
5
6
7
2
3
4
5
6
7
f99.hatscript.hats = { 	--[[ 	[1] = {name = "Hat 1", imagepath = "gfx/weiwen/farmour.png"}; 	[2] = {name = "Hat 2", imagepath = "gfx/vegas/cap.png"}; 	[3] = {name = "Hat 3", imagepath = "gfx/weiwen/farmour.png"}; 	]] }
Add the hat in the table: [ID] = {name = "NAME OF THE HAT", imagepath = "PATH OF IMAGE"}
Easy lol.
Installation:
Unpack and put it in sys/lua
Then in server.lua write:
1
dofile('sys/lua/hat.lua')
This script has got 72 lines.
View script here (link)
You can do anything you want with this but leave credits to me
I know this script is kinda easy and stuff. But I have to try the new scripting method lol.
edited 4×, last 28.05.12 07:55:14 pm
Approved by CY
Download
827 b, 1,287 Downloads