This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
module RMXOS
#------------------------------------------------------------------
# Passes the extension's main module to RMX-OS on the top
# level so it can handle this extension.
# Returns: Module of this extension for update.
#------------------------------------------------------------------
def self.load_current_extension
return Server_States
end
end
#======================================================================
# module ExtensionSkeleton
#======================================================================
module Server_States
# extension version
VERSION = 1.0
# required RMX-OS version
RMXOS_VERSION = 1.14
# whether the server should update this extension in an idividual thread or not
SERVER_THREAD = true
# :::: START Configuration
# - YOUR CONFIGURATION HERE
# :::: END Configuration
#------------------------------------------------------------------
# Initializes the extension (i.e. instantiation of classes).
#------------------------------------------------------------------
def self.initialize
end
#------------------------------------------------------------------
# Calls constant updating on the server.
#------------------------------------------------------------------
def try_login
return RMXOS::RESULT_DENIED if hash['online'] != '1'
user_id = hash['user_id'].to_i
RMXOS.server.sql.query #needs to add 1 digit in online in users table
end
def ????
#wen the user loggs out it needs to put a 0 in in online in users table
end
end
Quote from: Blizzard on May 26, 2010, 03:18:19 pm
Why don't you just increase the setting on the server to allow more connected users? -_-
Quote from: edwardthefma on May 26, 2010, 02:53:05 pmto prevent eating up the resources i lmit it to 20 users per server i plan to get 2 servers that run at the same time so if 1 goes offline the other is still up
the servers i have have to have small limits on them prventing a certen number of users per server
to i dont eat up the resources of the server