Hello, my Problem was it, to catch the Client Commands becouse the most commands are only server side in my plugin...
I have done it by checking SetCommandClient and store the index in a global... So i have written a function with params my plugin needed, so i can restrict or allow that command! Thanks for any help! with friendly reguards Ratman2000 ----- Original Message ----- From: "Oliver" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, May 10, 2007 3:18 AM Subject: Re: [hlcoders] Server Side only Commands? > -- > [ Picked text/plain from multipart/alternative ] > Ah gotcha, that makes sense. Thanks for clarification. > > On 5/9/07, Tony omega Sergi <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] > > that still makes it issuable by anybody connected. > > > > hence the whole ServerAdmin stuff in my reply. > > > > On 5/9/07, Oliver <[EMAIL PROTECTED]> wrote: > > > > > > -- > > > [ 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 > > > > > > > > > > > > -- > > -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

