Forum
CS2D Scripts how to do own luahow to do own lua
5 Antworten 1
I hate to see Estonians failing.
It ruins my counturies reputation
http://unrealsoftware.de/forum_posts.php?post=226033#jn
Im on a image editing spree
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("spawn","spawn_player") function spawnplayer(p) 	plz = player(p,"exists") 	plx = player(p,"name") 	if plz then 		parse("speedmod "..p.." -20") 	elseif (plx == "Noob") then 		parse("speedmod "..p.." -10") 	elseif (plx == "Newbie") then 		parse("speedmod "..p.." -5") 	elseif (plx == "Player") then 		parse("speedmod "..p.." 0") 	end end
Admin/Mod Kommentar
script is bugged.. (spawnplayer <> spawn_player)1
2
3
4
2
3
4
addhook("ms100","fail") 	function fail() 		msg("FailThread!") end
KimKat7 hat geschrieben
...
I lol'd at the Admin/mod comment.
KimKat7 hat geschrieben
Here's a Lua for you.
Just something ridiculous for a ridiculous thread.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("spawn","spawn_player") function spawnplayer(p) 	plz = player(p,"exists") 	plx = player(p,"name") 	if plz then 			<-- always will return "true" an execute speedmod -20. 		parse("speedmod "..p.." -20") 	elseif (plx == "Noob") then 		parse("speedmod "..p.." -10") .......................
M0ar BuGs.
ontopic:
if you are using windos:
right-click-->new txt file-->save it with the edning ".lua" example:
test.lua
1