Forum




How To Change Helth And Speed for ZB
7 replies



1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","speednshit") function speednshit(id,team) 	if (team==1) then 		parse("speedmod "..id.." "..YOURSPEEDHERE) 	end end
edited 1×, last 28.06.11 07:20:14 pm
will give error, cause you didnt init it

1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","speednshit") function speednshit(id,team) if (team==1) then parse("speedmod "..id.." --writeinspeedmodhere--") end end
@Yates
not
1
parse("speedmod "..id.." "..YOURSPEED)
1
parse("speedmod "..id.." YOURSPEED")
You don't have to insert the speed as a concatenated (.. <concatenation) variable, you can as well just write it in the quotes.
you don't even need speedmod or Lua stuff for this! there are extra zombie settings! AWESOMENESS!
check out:


there are also some more zombie settings. take a look at
http://www.cs2d.com/help.php?cat=settings
or at the "More Settings" tab after clicking at "New Game"




