Forum

> > CS2D > General > Script Skins HELP :D
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Script Skins HELP :D

5 replies
To the start Previous 1 Next To the start

old Script Skins HELP :D

xFurkan67
User Off Offline

Quote
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
admins = {"40246","30703",}
i = {}

function isad(id)
     for i,v in pairs(admins) do
          if player(id,"usgn") == tonumber(v) then
               return true
          end
     end
     return false
end

addhook("say","player_say")
function player_say(id,txt)
if(txt=="1") then
if isad(id) then
if not i[id] then i[id] = 0 end
freeimage(i[id])
parse("speedmod "..id.." 11")
parse("equip "..id.." "..3)
parse("sethealth "..id.." "..120)
parse("setarmor "..id.." "..120)
parse([[mp_wpndmg "Chainsaw" 300]] )
i[id]=image("gfx/wings.bmp",1,1,200+id)
imagescale(i[id],1,1)
imageblend(i[id],0)
imagealpha(i[id],1.0)
return 1
end
end
end
its Ok but when I write 1 come the wings to me ande when 307003 1 write goes the wings at me to him. HELP

old Re: Script Skins HELP :D

DannyDeth
User Off Offline

Quote
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
admins = {}

addhook("say","player_say")
function player_say(id,txt)
	if(txt=="1") then
		if admins[player(id,"usgn")] then
			freeimage(id)
			image("gfx/wings.png",1,1,200+id)
			parse("speedmod "..id.." 11")
			parse("equip "..id.." "..3)
			parse("sethealth "..id.." "..120)
			parse("setarmor "..id.." "..120)
			parse('mp_wpndmg "Chainsaw" 300')
			return 1
		end
	else
		return 0
	end
end

function addAdmin(USGN_ID)
	admins[USGN_ID] = {}
	local A = admins[USGN_ID]
end

addAdmin(40246)
addAdmin(30703)

There you go

old Re: Script Skins HELP :D

Ayudon
User Off Offline

Quote
xFurkan67 has written
i become the 120 kevlat etc.. but not the wings

Thats because you dont have the wings.png in the gfx folder, you had got them but you cant see them but if you have that file in the gfx folder..
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview