
Forum




how to do own lua
5 replies




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 comment
script is bugged.. (spawnplayer <> spawn_player)1
2
3
4
2
3
4
addhook("ms100","fail") 	function fail() 		msg("FailThread!") end
KimKat7 has written
...
I lol'd at the Admin/mod comment.
KimKat7 has written
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



