English [MENU] - Cap Colors icon

14 comments
14.08.13 05:35:25 am
like 1 likes it!
2 kb, 85 Downloads
pbeloto
User
Offline Off
Hi us

Bring a script CAP Colors.
this script is very simple , so I made for those who love hats / caps

> Contains
• 2 Hooks (menu and serveraction)
• 2 Functions (hook menu and hook serveraction)

> use and enjoy

√ can edit the image
√ can edit the colors
× not allow upload without my permission

> program for image creation
• PAINT.NET

• skype : pbeloto or 'Pedro Beloto

Thanks and until the next
imageimageimageimageimage
x This file has been reviewed and declined by DC (21.02.16 01:30:21 pm)
There are already files in the archive which have a similar content. Please create files which are more different from existing ones. Use the description to explain us the advantages of your version.

Comments

14 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
20.08.13 10:36:17 pm
Up
NooB_SwaT
User
Offline Off
But why you arent do more hat and scripting for hat are simple
19.08.13 05:39:09 pm
Up
D-D3ADxPro
User
Offline Off
Basicly, you just edited a hat image, and recolored it to different kinds of colors.
15.08.13 08:21:23 pm
Up
pbeloto
User
Offline Off
good user EngiN33R , I think everyone has his own way of doing script , I got mine and the user MikuAuahDark it has
15.08.13 06:22:47 pm
Up
EngiN33R
Moderator
Offline Off
@user pbeloto: Yes, I'm talking to you.
14.08.13 10:52:23 pm
Up
TopNotch
User
Offline Off
file cs2d 5 Teams Gametype (15)
It also uses cs2d lua cmd imagecolor, and it has more features than this. We have enough hat scripts. And who made this hat?
14.08.13 10:39:56 pm
Up
pbeloto
User
Offline Off
@user EngiN33R: you tell me?
14.08.13 08:53:02 pm
Up
EngiN33R
Moderator
Offline Off
Code:
1
2
3
freeimage(id)
cap_6 = image("gfx/cap.png",1,0,200+id)
imagecolor(cap_6,255,0,255)


user MikuAuahDark's is actually much better than yours. He uses tables, so with his script, there is no chance for hats of other people to get removed on accident, unlike in your script.
14.08.13 07:22:28 pm
Up
lucaSWAT
User
Offline Off
user pbeloto
"wat?"

More >


oh my god!
14.08.13 06:53:06 pm
Up
404_Monk
User
Offline Off
me had fridz u no!
forzdsfuck alone!
14.08.13 06:49:23 pm
Up
TimeQuesT
User
Offline Off
realBoys has written:
yes very simples, my script have 48 lines, you 47 lines,


Wow. I have to be badass. I can shrink every script to 1 line.
14.08.13 06:37:12 pm
Up
pbeloto
User
Offline Off
user MikuAuahDark:

Code:
1
ImgID[id]


whenever you use the hat will remove your friend

yes very simples, my script have 48 lines, you 47 lines,
14.08.13 07:21:39 am
Up
MikuAuahDark
User
Offline Off
simple
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ImgID={}
for i=1,32 do ImgID[i]=0 end

ColorList={
     {"Red",{255,0,0}},
     {"Green",{0,255,0}},
     {"Blue",{0,0,255}},
     {"Yellow",{255,255,0}},
     {"White",{255,255,255}},
     {"Black",{0,0,0}}
}

addhook("join","very")
function very(id)
     if ImgID[id]>0 then freeimage(ImgID[id]) end
     ImgID[id]=0
end

addhook("serveraction","absolutely")
function absolutely(id,f)
     if f==1 then
          local temp=""
          for n,v in pairs(ColorList) do
               temp=temp..","..v[1]
          end
          menu(id,"Cap Menu,Off,"..temp)
     end
end

addhook("menu","simple")
function simple(id,men,sel)
     if men=="Cap Menu" then
          if sel>0 then
               if sel==1 then
                    if ImgID[id]>0 then
                         freeimage(ImgID[id])
                         ImgID[id]=0
                    end
               else
                    if ImgID[id]==0 then
                         ImgID[id]=image("gfx/caps.bmp",1,1,200+id)
                    end
                    imagecolor(ImgID[id],unpack(ColorList[sel][2]))
               end
          end
     end
end

47lines of code and 5min to make it
14.08.13 07:17:19 am
Up
Occasus
User
Offline Off
Another hat script just showed up.
14.08.13 05:38:11 am
like I like it!
Up
brofistmsia
User
Offline Off
Oh, i have my own hat script, with fire cap.
But still like it.
To the start Previous 1 Next To the start