test = {} addhook("say", "test.say") function test.say(id, message) 	msg(player(id, "name") .. " says: \"" .. message .. "\"") 	if message == "money" then 		parse("setmoney " .. id .. " 16000") 		return 1 	end end addhook("join", "test.join") function test.join(id) 	msg("Welcome " .. player(id, "name")) end addhook("leave", "test.leave") function test.leave(id) 	msg("Good bye " .. player(id, "name")) end
OUTPUT hat geschrieben
[MSG] Welcome DC
[MSG] Welcome Livia
[MSG] Livia says: "Hi DC!"
[MSG] DC says: "money"
[PARSE] setmoney 1 16000
[RETURN] test.say: 1
[MSG] Good bye DC
[MSG] Welcome Livia
[MSG] Livia says: "Hi DC!"
[MSG] DC says: "money"
[PARSE] setmoney 1 16000
[RETURN] test.say: 1
[MSG] Good bye DC
Edit:
Amazing! It handles my sample gamemode without errors!
Gamemode can be found here: Datei existiert nicht (12391)
5× editiert, zuletzt 07.10.12 08:36:35