AKA: when a map is started, turret health is set higher, and price lower, etc etc. I hate having to type all those scripts in the console whenever I start a game
Forum
CS2D Scripts Lua Scripts/Questions/HelpAKA: when a map is started, turret health is set higher, and price lower, etc etc. I hate having to type all those scripts in the console whenever I start a game
Flametail has written
How can I make a whole lotta scripts execute upon starting a map?
AKA: when a map is started, turret health is set higher, and price lower, etc etc. I hate having to type all those scripts in the console whenever I start a game
AKA: when a map is started, turret health is set higher, and price lower, etc etc. I hate having to type all those scripts in the console whenever I start a game
you want a script to set your turret health and price when you start your server .
if that here is a little script to make all that you must put it on Counter-Strike 2D/sys/lua/server remember to rename this script to Server.lua,before starting any servers . here the script to make all that :-
here if you need more command check Cs2d.com
memo has written
you want a script to set your turret health and price when you start your server .
if that here is a little script to make all that you must put it on Counter-Strike 2D/sys/lua/server remember to rename this script to Server.lua,before starting any servers . here the script to make all that :-
if that here is a little script to make all that you must put it on Counter-Strike 2D/sys/lua/server remember to rename this script to Server.lua,before starting any servers . here the script to make all that :-
I think he means making a script which only runs when you start a specified map.
and is there a command i can use to equip all players with certain weapons? instead of one at a time?
instead of equip 1 88
equip whatever you put for all players 88
I noticed that 0 doesnt work in this case
Flametail has written
and is there a command i can use to equip all players with certain weapons? instead of one at a time?
instead of equip 1 88
equip whatever you put for all players 88
I noticed that 0 doesnt work in this case
instead of equip 1 88
equip whatever you put for all players 88
I noticed that 0 doesnt work in this case
Yes there is...
1
2
3
4
2
3
4
addhook("spawn","getallweapons") function getallweapons(id) parse("equip "..id.." 88") end
If you want to make a script for a specific map you have to save the lua-script in the "maps" folder. You'll also have to save is as the mapname and then with ".lua" in the end.
Fx. if i want to make a lua-script for de_dust i'll save the script in the "maps" folder called "de_dust.lua"
When you click "New game" in the cs2d menu you will also have to go into "More settings" and set "mp_luamap" to 1. Else it will not work i think (:
You can use a startround hook and use game("sv_map")
i know how to create them and other things with them but what are they?
0ito has written
need help for put the terrorists and counter-terrorist in the survivors in the zombie mod if someone help me on what to put in the script I thank
Yea that's good question i need to know if it possible to make Survivor team have both of Tt & Ct players,and if it possible to make a new Zombies skin and put them on the Zombies Team ?
Yes, that's possible. (About skins)
edited 1×, last 12.02.10 01:00:48 am
redefinder has written
Yes there is...
Flametail has written
and is there a command i can use to equip all players with certain weapons? instead of one at a time?
instead of equip 1 88
equip whatever you put for all players 88
I noticed that 0 doesnt work in this case
instead of equip 1 88
equip whatever you put for all players 88
I noticed that 0 doesnt work in this case
Yes there is...
1
2
3
4
2
3
4
addhook("spawn","getallweapons") function getallweapons(id) parse("equip "..id.." 88") end
same idea for a global speedmod or setmaxhealth?
I need script for ammo like this.
When I attack with matchet on player position will be spawn primarammo and secondary ammo .
Can somoeone help me ???
Sorry for my bad English I'm from Polish.
edited 1×, last 12.02.10 06:43:22 pm
1
2
3
2
3
if not (variable) then ... end
and
1
2
3
2
3
if (variable) then ... end
do you mean a boolean?
if x == true then
xyz
end
if x == false then / if x ~=true(the same)
xyz
end
You are right, it's correct.
Flametail has written
same idea for a global speedmod or setmaxhealth?
Just change commands.
For speedmod:
1
parse("speedmod "..id.." 10)
1
parse("setmaxhealth "..id.." 250)
Kking has written
Can someone help me i wana make a script (for admins) but i dont have lua knowledge plz reply
What exactly do you want?