[hlcoders] Console command for clients?

2004-12-04 Thread Manip
In the default plugin project if I register a console command within
'convar.cpp' the clients can see and use the command as well as the server
console. If however I register a command within 'serverplugin_empty.cpp' the
client can not see the console command but the server can.
I would just register them all within convar.cpp (obviously) but then I
don't get access to any engine calls etc. How is convar.cpp set to register
the console commands on the client AND server?


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


RE: [hlcoders] Console command for clients?

2004-12-04 Thread Alfred Reynolds
Plugins are server side only, putting them in convar is wrong and won't
work. You need to register them in serverplugin_empty.cpp.

- Alfred

Original Message
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manip Sent:
Saturday, December 04, 2004 12:23 PM To: [EMAIL PROTECTED]
Subject: [hlcoders] Console command for clients?

 In the default plugin project if I register a console command within
 'convar.cpp' the clients can see and use the command as well as the
 server console. If however I register a command within
 'serverplugin_empty.cpp' the client can not see the console command
 but the server can.

 I would just register them all within convar.cpp (obviously) but then
 I don't get access to any engine calls etc. How is convar.cpp set to
 register the console commands on the client AND server?





 ___
 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



Re: [hlcoders] Console command for clients?

2004-12-04 Thread Ronny Schedel
CON_COMMAND_F with flags FCVAR_GAMEDLL should fit
your needs.
Greets
Ronny

In the default plugin project if I register a console command within
'convar.cpp' the clients can see and use the command as well as the
server
console. If however I register a command within 'serverplugin_empty.cpp'
the
client can not see the console command but the server can.
I would just register them all within convar.cpp (obviously) but then I
don't get access to any engine calls etc. How is convar.cpp set to
register
the console commands on the client AND server?


___
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


RE: [hlcoders] Console command for clients?

2004-12-04 Thread Alfred Reynolds
For a plugin you should use FCVAR_PLUGIN.

- Alfred

Original Message
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ronny
Schedel Sent: Saturday, December 04, 2004 12:52 PM To:
[EMAIL PROTECTED] Subject: Re: [hlcoders] Console command
for clients?

 CON_COMMAND_F with flags FCVAR_GAMEDLL should fit your needs.

 Greets
 Ronny


  In the default plugin project if I register a console command within
  'convar.cpp' the clients can see and use the command as well as
  the server console. If however I register a command within
  'serverplugin_empty.cpp' the
  client can not see the console command but the server can.
 
  I would just register them all within convar.cpp (obviously) but
  then I don't get access to any engine calls etc. How is convar.cpp
  set to register the console commands on the client AND server?
 
 
 
 
 
  ___
  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



Re: [hlcoders] Console command for clients?

2004-12-04 Thread Manip
Fine but then how do I register a command so the clients can call it?
And don't tell me it can't be done because I have done it and so have
AMX/AM/etc on 1.6.
If I use CON_COMMAND in the serverplugin_empty.cpp it does not work on a
client. It gives you an unknown commaand error, works on the server console
though
- Original Message -
From: Alfred Reynolds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 04, 2004 8:35 PM
Subject: RE: [hlcoders] Console command for clients?

Plugins are server side only, putting them in convar is wrong and won't
work. You need to register them in serverplugin_empty.cpp.
- Alfred
Original Message
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manip Sent:
Saturday, December 04, 2004 12:23 PM To: [EMAIL PROTECTED]
Subject: [hlcoders] Console command for clients?
In the default plugin project if I register a console command within
'convar.cpp' the clients can see and use the command as well as the
server console. If however I register a command within
'serverplugin_empty.cpp' the client can not see the console command
but the server can.
I would just register them all within convar.cpp (obviously) but then
I don't get access to any engine calls etc. How is convar.cpp set to
register the console commands on the client AND server?


___
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


RE: [hlcoders] Console command for clients?

2004-12-04 Thread Alfred Reynolds
It's a server command, so a client needs to use rcon to execute server
commands. You should use ClientCommand() for client commands :-)

- Alfred

Original Message
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Manip Sent:
Saturday, December 04, 2004 1:14 PM To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Console command for clients?

 Fine but then how do I register a command so the clients can call it?

 And don't tell me it can't be done because I have done it and so have
 AMX/AM/etc on 1.6.

 If I use CON_COMMAND in the serverplugin_empty.cpp it does not work
 on a client. It gives you an unknown commaand error, works on the
 server console though

 - Original Message -
 From: Alfred Reynolds [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, December 04, 2004 8:35 PM
 Subject: RE: [hlcoders] Console command for clients?


  Plugins are server side only, putting them in convar is wrong and
  won't work. You need to register them in serverplugin_empty.cpp.
 
  - Alfred
 
  Original Message
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Manip
  Sent: Saturday, December 04, 2004 12:23 PM To:
  [EMAIL PROTECTED]
  Subject: [hlcoders] Console command for clients?
 
   In the default plugin project if I register a console command
   within 'convar.cpp' the clients can see and use the command as
   well as the server console. If however I register a command within
   'serverplugin_empty.cpp' the client can not see the console
   command but the server can.
  
   I would just register them all within convar.cpp (obviously) but
   then I don't get access to any engine calls etc. How is
   convar.cpp set to register the console commands on the client AND
   server?
  
  
  
  
  
   ___
   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

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



Re: [hlcoders] Console command for clients?

2004-12-04 Thread Manip
I thought I tried that, clearly I didn't, THANK YOU! :-)
Ignore my previous reply I was still downloading mail at the time.
- Original Message -
From: Ronny Schedel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 04, 2004 8:52 PM
Subject: Re: [hlcoders] Console command for clients?

CON_COMMAND_F with flags FCVAR_GAMEDLL should fit
your needs.
Greets
Ronny

In the default plugin project if I register a console command within
'convar.cpp' the clients can see and use the command as well as the
server
console. If however I register a command within 'serverplugin_empty.cpp'
the
client can not see the console command but the server can.
I would just register them all within convar.cpp (obviously) but then I
don't get access to any engine calls etc. How is convar.cpp set to
register
the console commands on the client AND server?


___
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


Re: [hlcoders] Console command for clients?

2004-12-04 Thread Ronny Schedel
Nope, you are wrong, that does not work.
Greets
Ronny

For a plugin you should use FCVAR_PLUGIN.
- Alfred
Original Message
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ronny
Schedel Sent: Saturday, December 04, 2004 12:52 PM To:
[EMAIL PROTECTED] Subject: Re: [hlcoders] Console command
for clients?
CON_COMMAND_F with flags FCVAR_GAMEDLL should fit your needs.
Greets
Ronny
 In the default plugin project if I register a console command within
 'convar.cpp' the clients can see and use the command as well as
 the server console. If however I register a command within
 'serverplugin_empty.cpp' the
 client can not see the console command but the server can.

 I would just register them all within convar.cpp (obviously) but
 then I don't get access to any engine calls etc. How is convar.cpp
 set to register the console commands on the client AND server?





 ___
 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

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


Re: [hlcoders] console command

2001-12-06 Thread Cortex



I used this function but I didn't work 
;(
I forgot the \n ;)

Thanks Botman :-}

CortexHL 
Albator coder  mapperwww.hlalbator.fr.st


- Original Message - 

  From: 
  botman 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, December 05, 2001 8:33 
  PM
  Subject: Re: [hlcoders] console 
  command
   What is the function ( server side ) to reproduce 
  a console command ? I mean this function would act like 
  ClientCmd client side.There's a SERVER_COMMAND() macro that calls 
  pfnServerCommand(). You can dosomething like 
  this...SERVER_COMMAND("map stalkyard\n");...don't forget the 
  \n at the end. :)Jeffrey "botman" 
  Broome___To 
  unsubscribe, edit your list preferences, or view the list archives, please 
  visit:http://list.valvesoftware.com/mailman/listinfo/hlcoders


[hlcoders] console command

2001-12-05 Thread Cortex



Hello,

What is the function ( server side ) to 
reproduce a
console command ? I mean this function 
would act like
ClientCmd client side.

Thanks ;)

CortexHL 
Albator coder  mapperwww.hlalbator.fr.st


Re: [hlcoders] console command

2001-12-05 Thread botman

 What is the function ( server side ) to reproduce a
 console command ? I mean this function would act like
 ClientCmd client side.

There's a SERVER_COMMAND() macro that calls pfnServerCommand().  You can do
something like this...

SERVER_COMMAND(map stalkyard\n);

...don't forget the \n at the end.  :)

Jeffrey botman Broome

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




Re: [hlcoders] console command

2001-12-05 Thread Mugsy _


SERVER_COMMAND(buf);


From: Cortex [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: coders [EMAIL PROTECTED]
Subject: [hlcoders] console command
Date: Wed, 5 Dec 2001 17:56:07 +0100

Hello,

What is the function ( server side ) to reproduce a
console command ? I mean this function would act like
ClientCmd client side.

Thanks ;)


Cortex
HL Albator coder  mapper
www.hlalbator.fr.st



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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