Forum

> > CS2D > General > Lua Scripts
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Lua Scripts

1 reply
To the start Previous 1 Next To the start

old closed Lua Scripts

blood2d
User Off Offline

Quote
The next code is for reset your score

addhook("say","rs")
function rs(p,txt)
if (txt=="!rs;!resetscore") then
parse("setscore "..p.." 0")
parse("setdeaths "..p.." 0")
msg(player(p,"name").." reset score")
return 1
end
end


The next code is for respawn money


if flacko==nil then flacko={} end
flacko.cash={}

addhook("startround","flacko.cash.spawncash")
function flacko.cash.spawncash(p)
for i=1, 32 do
if(player(i,"exists")) then
parse("setmoney "..i.." 16000")
end
end
end


The next code is FunMod (Created By me)


if fun==nil then fun={} end
fun={}

addhook("startround","fun.weapons")
function fun.weapons(p)
for i=1, 32 do
if(player(i,"exists")) then
msg("Use !fun for get all the weapons")
parse("equip "..i.." 46")
parse("equip "..i.." 47")
parse("equip "..i.." 48")
parse("equip "..i.." 49")
parse("equip "..i.." 51")
parse("equip "..i.." 52")
parse("equip "..i.." 53")
parse("equip "..i.." 54")
parse("equip "..i.." 58")
parse("equip "..i.." 69")
parse("equip "..i.." 72")
parse("equip "..i.." 73")
parse("equip "..i.." 74")
parse("equip "..i.." 75")
parse("equip "..i.." 76")
parse("equip "..i.." 77")
parse("equip "..i.." 78")
parse("equip "..i.." 85")
parse("equip "..i.." 86")
parse("equip "..i.." 87")
parse("equip "..i.." 88")
end
end
end

addhook("say","funweapons")
function funweapons(p,txt)
if (txt=="!fun") then
for i=1, 32 do
parse("equip "..i.." 46")
parse("equip "..i.." 47")
parse("equip "..i.." 48")
parse("equip "..i.." 49")
parse("equip "..i.." 51")
parse("equip "..i.." 52")
parse("equip "..i.." 53")
parse("equip "..i.." 54")
parse("equip "..i.." 58")
parse("equip "..i.." 69")
parse("equip "..i.." 72")
parse("equip "..i.." 73")
parse("equip "..i.." 74")
parse("equip "..i.." 75")
parse("equip "..i.." 76")
parse("equip "..i.." 77")
parse("equip "..i.." 78")
parse("equip "..i.." 85")
parse("equip "..i.." 86")
parse("equip "..i.." 87")
parse("equip "..i.." 88")
msg(player(p,"name").." been used !fun to get all")
end
end
end

Admin/mod comment

Stolen + There is already a lua thread. Closed. /TheKilledDeath

old Re: Lua Scripts

davidavid
User Off Offline

Quote
Why did you posted scripts that are not yours? (I'm sure without permisson)
and..you should use the File Archive..
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview