Forum

> > CS2D > Scripts > I need help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch I need help

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt I need help

Zyga
User Off Offline

Zitieren
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

alt Re: I need help

DC
Admin Off Offline

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

alt Re: I need help

kalis
User Off Offline

Zitieren
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")
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht