Files

> > CS2D > Lua Scripts > Hat script v1.0
Files overviewCS2D overviewLua Scripts overview

English Hat script v1.0 >

30 comments827 b, 1,287 Downloads

old Hat script v1.0

Infinite Rain
Reviewer Off Offline

Title say it all.

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
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 Download

827 b, 1,287 Downloads

Comments

30 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Lubo
User Off Offline

good script bro.
I like it!

old

krabob
User Off Offline

@user Yates: Nope, up to 72 hats only. But who'd need that many hats?

old

Yates
Reviewer Off Offline

@user krabob: That probably doesn't have this inf. menu?

old

Avo
User Off Offline

@user Infinite Rain: You should thank, no challange me
I like it!

old

krabob
User Off Offline

A script I use has 100 lines, including the 40 lines of hats.

old

Alistaire
User Off Offline

Well the constant f99.hatscript. shit increases wordcount so pretty easy to make in less lines.

old

Infinite Rain
Reviewer Off Offline

@user Avo:
Oh yea? Then try to do it LESS than 72 lines WITHOUT looking at my script.

old

3RROR
User Off Offline

@user Avo: @user BaDgEr:
Atleast it's more easier to use.
I like it!

old

BaDgEr
User Off Offline

The same as user Avo said.
@user Avo: Send me this script on Mediafire or somewhere (you know which one )
I like it!

old

Avo
User Off Offline

user Infinite Rain, it's very n00b script, but I don't care - like anyway
I like it!
To the start Previous 1 2 Next To the start