Files

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

English Hat script v1.0 >

30 comments827 b, 1,225 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,225 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

TempoCat
User Off Offline

by the way, so i downloaded two script that uses F2 as the hotkey, and i want to change the hotkey of this script, but i dont know how to do it, can you tell me how to change the hotkey? By the way, i Like it!
I like it!

old

Skyler
BANNED Off Offline

awesome!
i like it.
I like it!

old

GeoB99
Moderator Off Offline

@user jay22114: Check the Console for any Lua errors highlighted in red colour. The Console tells you lots of information if a certain script fails to execute properly.

old Nofthing

jay22114
User Off Offline

Nothing Happens i did all steps and nothing. just same

old

mozilla1
User On Online

This is not "user-friendly"

Most people wont use this because it is hard..
Make it more simple.

old

Kevin916
User Off Offline

not bad.

old

Heling
User Off Offline

nice,i like it!
I like it!

old

killerboy1
User Off Offline

it dont work for me.

Help pls.
I like it!

old

Misho
User Off Offline

Useful, yeah.
I like it!

old

ImSoFuckingRetarded
BANNED Off Offline

By WHAT I'm seeing is just something edited.
I like it!

old

sheeL
User Off Offline

yeah but ..
the code is different
More like what you created already exists

old

Infinite Rain
Reviewer Off Offline

Sheel it's not equal the other scripts
read descriptions

old

sheeL
User Off Offline

exists 500000 script equal but i like

old

EP
User Off Offline

Good one Factis699, nice functions.
I like it!

old

Infinite Rain
Reviewer Off Offline

@user Alistaire:
THIS method making my script LESS lined if you will look carefully. And that't more proffesional. Because the arrays and shit can conflict to each other if you will install several of scripts in one time.
To the start Previous 1 2 Next To the start