Forum

> > CS2D > General > Hats Script Questions
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Hats Script Questions

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hats Script Questions

ManuCrazy
User Off Offline

Zitieren
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

alt Re: Hats Script Questions

Yasday
User Off Offline

Zitieren
freeimage(imageid)

and for the downloadthingy

cs2d folder /sys/servertransfer.lst

write in there like
gfx/hat1.png
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht