Raised This Month: $ Target: $400
 0% 

con/clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-30-2006 , 09:44   con/clcmd
Reply With Quote #1

what are the differences between concmd and clcmd?
Code:
/* Registers function which will be called from client console. */ native register_clcmd(const client_cmd[],const function[],flags=-1, info[]="");   /* Registers function which will be called from any console. */ native register_concmd(const cmd[],const function[],flags=-1, info[]="");
From: Amxmodx.inc
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-30-2006 , 16:38   Re: con/clcmd
Reply With Quote #2

the client command is only called from a clients console . the console command can be called by any console .

http://www.amxmodx.org/doc/source/fu...ster_clcmd.htm

http://www.amxmodx.org/doc/source/fu...ter_concmd.htm

Hope that helps
Nostrodamous is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-31-2006 , 10:07   Re: con/clcmd
Reply With Quote #3

seeing how I cant go to amxmodx.org at all because school blocks it and your just repeating what the comments above the native says, no it doesnt help I wanted to know what consol besides client console (clcmd) and server console (srvcmd) is used for concmd.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
AndraX2000
Member
Join Date: Mar 2006
Location: 39°57' N 83°14' W
Old 10-31-2006 , 10:20   Re: con/clcmd
Reply With Quote #4

I'll translate Nostrodamous for you:

There are exactly 2 consoles. The client console and the server console.

register_clcmd registers a command may be called from ONLY the client console.
register_svrcmd registers a command may be called from ONLY the server console.
register_concmd registers a command may be called from both the client console AND the server console.

An example of a command registered using register_clcmd is "amx_slapmenu." Typing this into the client console gives the client a menu. Typing it into the server console does not work.

An example of a command registered using register_concmd is "amx_slap." Typing this into the client console slaps a player. Typing it into the server also slaps a player. You can use it in both consoles.
AndraX2000 is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-31-2006 , 10:33   Re: con/clcmd
Reply With Quote #5

thanks andra
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode