Thread
:
Server Chat Relay v0.2 (2/18)
View Single Post
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
07-08-2008 , 04:32 Re: Server Chat Relay v0.1 (7/05)
#
8
Actually, thinking aloud, why not pack the message with a identifier?
Then when the message is received, it picks up the identifier and then processes the message accordingly.
Such as
identifier = 0 - sm_bc - Prints chat to all
identifier = 1 - sm_bcc - runs server command
identifier = 2 - sm_bca - Admin only messages
identifier = N - sm_bcx - What ever you want
Should be a simple set of IF statements or a select case, to process the options differently, but still maintaining the same broadcast code??
Matt
__________________
Thanks! Matt
Business Consultant
eSellerPro
MoggieX
View Public Profile
Send a private message to MoggieX
Visit MoggieX's homepage!
Find More Posts by MoggieX