Forum

> > CS2D > Scripts > I need help
Forums overviewCS2D overview Scripts overviewLog in to reply

English I need help

3 replies
To the start Previous 1 Next To the start

old I need help

Zyga
User Off Offline

Quote
ive been trying to create my new luas ive never made them before can someone help me fixup this one

its and admin of bot server say script

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
if player (say "!equip")
	parse("equip "..id.." "45")
	parse("setarmor "..id.." "205")
else player (say "!e")
	parse("equip "..id.." "45")
	parse("setarmor "..id.." "205")
end

if player (say "!set")
	parse("setmaxhealth "..id.." "250")
	parse("mp_wpndmg "knife" "9999")
end

if player (say "!help")
	parse("sethealth "..id.." "250")
end

if player (say "!build")
	parse("mp_building_health "turret" "999")
	parse("mp_building_health "wall III" "9999")
	parse("mp_building_health "gate feild" "999")
	parse("mp_building_health "barbed wire" "9999")
	parse("mp_building_health "barricade" "9999")
	parse("mp_building_limit "turret" "9999")
	parse("mp_building_limit "gate feild" "9999")
	parse("mp_building_price "turret" "1")
	parse("mp_building_price "wall III" "1")
	parse("mp_building_price "gatefeild" "1")
end

old Re: I need help

DC
Admin Off Offline

Quote
please choose an appropriate, non-generic title if you really want help.

old Re: I need help

kalis
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
addhook('say', 'say_cmd')
function say_cmd(id,txt)
if txt == "!equip" then
     parse("equip "..id.." "45")
     parse("setarmor "..id.." "205")
elseif txt == "!e" then)
     parse("equip "..id.." "45")
     parse("setarmor "..id.." "205")
end

if txt == "!set" then
     parse("setmaxhealth "..id.." "250")
     parse("mp_wpndmg "knife" "9999")
end

if txt == "!help" then
     parse("sethealth "..id.." "250")
end

if txt == "!build" then
     parse("mp_building_limit "turret" "9999")
     parse("mp_building_limit "gate feild" "9999")
     parse("mp_building_price "turret" "1")
     parse("mp_building_price "wall III" "1")
     parse("mp_building_price "gatefeild" "1")
end
end
hey all lua have? this code?
1
parse("mp_building_health "gate feild" "999")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview