I'd prob use the pre-processors to sort out the client\server issue in
this case.

// Start of code example...
#ifdef CLIENT_DLL
  // do this on only in the client dll.
  // So... add your client prefix in the code here.
#else
  // do this on only in the server dll.
  // So... add your server prefix in the code here.
#endif
// End of Code example


I grabbed this example out of top of the weapon_crossbow.cpp


--- Saul Rennison <[EMAIL PROTECTED]> wrote:

> Hey Guys,
> I'm wondering if there is some way I can change Msg() in my mod. I
> want
> it to prefix with "SERVER:" if the Msg() was called in the
> server.dll,
> and  "CLIENT:"  if the Msg() was called in the client.dll
>
> Thanks in advance,
>  - Saul.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to