Now need a reset also at round start.
@edit
i need also a script which gives invisible armor when i say "!camo on" and it takes when i say "!camo off"
edited 2×, last 26.05.09 04:33:21 pm
Scripts
Lua Scripts/Questions/Help
Thanks DC! I will work on it.
1st: What program u use to program in Lua? Can you use notepad? (Well, i bet you need something to compile the code)
2nd: Lua is like Basic?
3rd: After you make your Lua Script how do you implement it in CS2D? Does it generates an .exe which you put in the CS2D folder?
dofile("sys/lua/NAMEOFYOURFILE.lua")
2nd: Lua is like Basic?
trigger (or in lua: parse("trigger NAME")) parse (txt=="!hotel") ("tigger hotel")
if (txt=="!hotel") then
	parse("tigger hotel")
end
let cs2d parse txt=="!hotel" (which doesn't make sense)
do ??? (no command!?) with "tigger hotel" (which is totally pointless)
if txt is "!hotel" then do the following:
let cs2d parse "tigger hotel" (which means: trigger all entities with the name hotel)