Forum

> > CS2D > General > Hats Script Questions
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Hats Script Questions

1 reply
To the start Previous 1 Next To the start

old Hats Script Questions

ManuCrazy
User Off Offline

Quote
Hello Friends
I recently downloaded a script called mod hats
that when you speak a text appears in a picture on his avatar giving the impression that it is a hat
but not all fall the image on being possible only I see, they can use the commands (example:! corner) and on my screen but the picture shows they can not see her, I already checked on the dedicated server and what happens is that they not downloaded the image on
Part of the script:
<addhook("say","say_hat")
function say_hat(id,txt)
if (txt=="!helmet") then
freeimage(id)
id1=image("gfx/hats/helmet.bmp",1,1,200+id)
imagescale(id1,1,1)
imageblend(id1,0)
imagealpha(id1,1.0)
end>

Another thing I like to know is how to remove the pictures, I mean create a command to remove the pictures, the script already came with such a command, but it does not work

<if (txt=="!nohat") then
     freeimage(id)
     id1=image("gfx/hats/nohat.bmp",1,1,200+id)
     imagescale(id1,1,1)
     imageblend(id1,0)
     imagealpha(id1,1.0)
          end>

Thanks for Everything
DC I'm your fan *-*
Potatos For All cookies

old Re: Hats Script Questions

Yasday
User Off Offline

Quote
freeimage(imageid)

and for the downloadthingy

cs2d folder /sys/servertransfer.lst

write in there like
gfx/hat1.png
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview