Forum

> > CS2D > Scripts > say script
Forums overviewCS2D overview Scripts overviewLog in to reply

German say script

4 replies
To the start Previous 1 Next To the start

old say script

the wolf
User Off Offline

Quote
function IDS(id)
return true
end

addhook("say","attack")
function attack(id,txt)
if(txt=="!test") then
if IDS(id) then
freeimage(id)
parse("speedmod "..id.." 100")
parse("setmaxhealth "..id.." 250")
parse("equip "..id.." 88")
parse("equip "..id.." 83")
parse("equip "..id.." 45")
parse("equip "..id.." 47")
parse("equip "..id.." 46")
parse("equip "..id.." 41")
parse("equip "..id.." 52")
parse("equip "..id.." 52")
parse("equip "..id.." 51")
parse("equip "..id.." 85")
parse("equip "..id.." 69")
parse("equip "..id.." 59")
parse("equip "..id.." 72")
parse("equip "..id.." 73")
id1=image("gfx/button_admin_right.jpeg",0,0,100+id)
imagescale(id1,1,1)
imageblend(id1,0)
imagealpha(id1,1.0)
if (player(id,"team") == 2) then
imagecolor(id1,255,255,255)
end
end
end
end[/code]

also ich mein ohne id das jeder den befehl sagen kann hilfe bitte
edited 1×, last 19.03.11 12:32:25 pm

old Re: say script

ohaz
User Off Offline

Quote
am einfachsten:
1
2
3
4
5
6
7
8
function IDS(id)
for _, usgn in ipairs(admin) do
if player(id,'usgn') == usgn then
return true
end
end
return false
end
umwandeln in:
1
2
3
function IDS(id)
return true
end

old Re: say script

the wolf
User Off Offline

Quote
hab ich jetz sagt die console das er drin is aber wen ich den den befehl sage passiert nichts
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview