How To Make Own GM Commands

🚫
Exiled
Joined
Oct 19, 2006
Messages
400
Reaction score
1
Location
Sweden
Creating an own server? Wanna learn how to create your own GM commands? Check this!
Code:
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")



NO CREDITS TO ME!!
 
Back