How To Make Own GM Commands

Results 1 to 1 of 1
  1. #1
    Account Upgraded | Title Enabled! weaxer is offline
    MemberRank
    Oct 2006 Join Date
    SwedenLocation
    853Posts

    How To Make Own GM Commands

    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!!




Advertisement