Dateien

> > CS2D > Lua Scripts > Hat script v1.0
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Hat script v1.0 >

30 Kommentare827 b, 1.226 Downloads

alt 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.
4× editiert, zuletzt 28.05.12 19:55:14
Zugelassen von CY

Download Download

827 b, 1.226 Downloads

Kommentare

30 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

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!
Ich mag es!

alt

Skyler
BANNED Off Offline

awesome!
i like it.
Ich mag es!

alt

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.

alt Nofthing

jay22114
User Off Offline

Nothing Happens i did all steps and nothing. just same

alt

mozilla1
User Off Offline

This is not "user-friendly"

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

alt

Kevin916
User Off Offline

not bad.

alt

Heling
User Off Offline

nice,i like it!
Ich mag es!

alt

killerboy1
User Off Offline

it dont work for me.

Help pls.
Ich mag es!

alt

Misho
User Off Offline

Useful, yeah.
Ich mag es!

alt

ImSoFuckingRetarded
BANNED Off Offline

By WHAT I'm seeing is just something edited.
Ich mag es!

alt

sheeL
User Off Offline

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

alt

Infinite Rain
Reviewer Off Offline

Sheel it's not equal the other scripts
read descriptions

alt

sheeL
User Off Offline

exists 500000 script equal but i like

alt

EP
User Off Offline

Good one Factis699, nice functions.
Ich mag es!

alt

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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang