AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   con/clcmd (https://forums.alliedmods.net/showthread.php?t=46637)

Rolnaaba 10-30-2006 09:44

con/clcmd
 
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

Nostrodamous 10-30-2006 16:38

Re: con/clcmd
 
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 :up:

Rolnaaba 10-31-2006 10:07

Re: con/clcmd
 
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.

AndraX2000 10-31-2006 10:20

Re: con/clcmd
 
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.

Rolnaaba 10-31-2006 10:33

Re: con/clcmd
 
thanks andra


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

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