View Single Post
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 07-08-2008 , 04:32   Re: Server Chat Relay v0.1 (7/05)
Reply With Quote #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
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX