--
[ Picked text/plain from multipart/alternative ]
Another idea is to use #ifndef and #ifdef (NOTE: this is only valid for
shared code)
So for server:
#ifndef CLIENT_DLL
CON_COMMAND(this_is_a_server_only_command, "")
{
//code
}
#endif
And for client:
#ifdef CLIENT_DLL
CON_COMMAND(this_is_a_client_only_command, "")
{
//code
}
#endif
On 5/9/07, Ratman2000 <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> thanks!
>
> With friendly reguards
>
> Ratman2000
>
> ----- Original Message -----
> From: "Tony "omega" Sergi" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, May 09, 2007 8:46 AM
> Subject: Re: [hlcoders] Server Side only Commands?
>
>
> > --
> > [ Picked text/plain from multipart/alternative ]
> > CON_COMMAND( server_command, "my server only command" )
> > {
> > if ( !UTIL_IsCommandIssuedByServerAdmin() )
> > return;
> >
> > dostuff();
> > }
> >
> > On 5/9/07, Ratman2000 <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > im trying to create a Server side only ConCommand without luck...
> > >
> > > Can anybody tell me a way, i can create a Server Side Only Command, or
> i
> > > can
> > > find out, which player runs this command?
> > >
> > > The Problem is, that i like to make different thinkt by server and by
> > > client
> > > commands...
> > >
> > > Is there a way?
> > >
> > > Sorry for my bad english :)
> > >
> > > With friendly Reguards from Germany
> > >
> > > Ratman2000
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > --
> > -omega
> > --
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders