All pastes #389820 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-11 00:06 UTC
rendered paste body
-- This file shows how you can make your own GM command

function example_lua_command(player, args, type)
	log("Somebody typed luaexample, args: %s, type: %d, Player Security: %d", args, type, player:GetSecurity())
	return true -- This means that the command text won't be actually said... experiment with making this false
end

register_lua_script_command(".luaexample", "example_lua_command")