Dateien

> > CS2D > Lua Scripts > Hats Mod
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Hats Mod >

58 Kommentare4 kb, 3.072 Downloads

alt Hats Mod

RyceR
User Off Offline

===> Hats Mod <===
> Small mod by RyceR
Here is commands:
!phoenix
!corner
!helmet
!spikes
!tyrans
!nohat

Have Fun
1× editiert, zuletzt 27.09.10 20:30:14
Zugelassen von Yates

Download Download

4 kb, 3.072 Downloads

Kommentare

58 Kommentare
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

Logge dich ein!

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

alt

Nahuelpet
User Off Offline

Good Scrip but you can make it better , make a menu , or add more hats
Ich mag es!

alt

stealth_killer
User Off Offline

hey 1 time i putted a hat then i wirte !nohat and the hat dint disapear ??? i think that is a bug
Ich mag es!

alt

Metalious
User Off Offline

wow nice! but idk how to wear the helmet and its not working x_x
Ich mag es!

alt HaLuK

qHaZi
User Off Offline

yes good.but should be better ; )
Ich mag es!

alt

hantor
User Off Offline

is good why? hats :6hats equip
Ich mag es!

alt

zwinky207
User Off Offline

Dosent work for me please help me!!!

alt

Robotic-Brain
User Off Offline

Good script but it probably won't work with other scripts
here is the updated version:

local imgArray={}

for i=1, 32 do
     imgArray[i]=0
end

addhook("say","say_hat")
function say_hat(id,txt)
     if (txt=="!helmet") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
          imgArray[id]=image("gfx/hats/helmet.bmp",1,1,200+id)
     end
     if (txt=="!spikes") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
          imgArray[id]=image("gfx/hats/spikes.png",1,1,200+id)
     end
     if (txt=="!phoenix") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
          imgArray[id]=image("gfx/hats/phoenix.png",1,1,200+id)
     end
     if (txt=="!corner") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
          imgArray[id]=image("gfx/hats/wing5.bmp",1,1,200+id)
     end
     if (txt=="!nohat") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
     end
     if (txt=="!tyrans") then
          if(imgArray[id]~=0 and imgArray[id]~=nil) then freeimage(imgArray[id]) end
          imgArray[id]=image("gfx/hats/tyrans.bmp",1,1,200+id)
     end
end
Ich mag es!

alt

hun
User Off Offline

MS Paint or Adobe Photoshop.

alt

Crash13
User Off Offline

What program do you use to make hats? Good hats

alt

PbBOKAN
User Off Offline

just add return 1, like:
if (txt=="!spikes") then
freeimage(id)
id=image("gfx/hats/spikes.png",1,1,200+id)
parse("speedmod "..id.." -100")
timer(1000,"parse","speedmod "..id.." 0")
     return 1
end
Ich mag es!

alt

Mechanolith
User Off Offline

I love and use it, it's so simple, and fun
How can i make the message like: !spike don't appears? Only the hat, and the return value be nil (i think it's that)
Like, i type: !spike
and the helmet appears, without the message on the chat.
Ich mag es!

alt

RyceR
User Off Offline

@furkangoktas why you spam your file here?!
P.S: I dont do double-post, furkangoktas post is removed and my post is near my old post
3× editiert, zuletzt 26.12.10 16:08:54

alt

RyceR
User Off Offline

@PbBOKAN This mode is from CS2D 1.1.6 and it can have some bugs... Ok, I will fix and re-upload it.

alt

PeterToman
COMMUNITY BANNED Off Offline

Off topic: the first and second maps on pictures are Banaan's map for Fruitpapje >'<
I think I saw it somewhere...
Ich mag es!

alt Solved

PbBOKAN
User Off Offline

There is bug, what ever hat you choose only player with ID=1 will have it. Soo here is fixed all(including !nohat)
addhook("say","say_hat")
function say_hat(id,txt)
     if (txt=="!helmet") then
     freeimage(id)
id=image("gfx/hats/helmet.bmp",1,1,200+id)
          parse("speedmod "..id.." -100")
          timer(1000,"parse","speedmod "..id.." 0")
          end
     if (txt=="!spikes") then
     freeimage(id)
     id=image("gfx/hats/spikes.png",1,1,200+id)
          parse("speedmod "..id.." -100")
          timer(1000,"parse","speedmod "..id.." 0")
          end
     if (txt=="!phoenix") then
     freeimage(id)
     id=image("gfx/hats/phoenix.png",1,1,200+id)
          parse("speedmod "..id.." -100")
          timer(1000,"parse","speedmod "..id.." 0")
          end
     if (txt=="!corner") then
     freeimage(id)
     id=image("gfx/hats/wing5.bmp",1,1,200+id)
          parse("speedmod "..id.." -100")
          timer(1000,"parse","speedmod "..id.." 0")
          end
     if (txt=="!nohat") then
     freeimage(id)
          end
     if (txt=="!tyrans") then
     freeimage(id)
     id=image("gfx/hats/tyrans.bmp",1,1,200+id)
          parse("speedmod "..id.." -100")
          timer(1000,"parse","speedmod "..id.." 0")
          end
     end

I even added timer so when you change hat you will stay still for a second.
Ich mag es!

alt

ManuCrazy
User Off Offline

hi RyceR
I loved your script
I edited it to put on my server
I always use your script, because I find it very funny
there is only one problem
function !nohat not working
I would ask you to see this
Thanks

Signed ManuCrazy
Ich mag es!

alt

ihtizar
User Off Offline

its okay ...(min. 20 chars)!
1× editiert, zuletzt 04.11.10 16:19:53

alt

ManuCrazy
User Off Offline

I Really Liked
Make more more more
Ich mag es!

alt

Danikah
User Off Offline

Needs moar comments with the following words:
"EPIC" "AWESOME" "EPIC & AWESOME" "GOOD" "REALLY GOOD"

Also, can I have a permission to modify it? I'll give credit.
Ich mag es!
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang