AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to write? (https://forums.alliedmods.net/showthread.php?t=183179)

Artifact 04-18-2012 13:38

How to write?
 
How to write client command like #cstrike_something
When I put console_command(id, "#cstrike_something") console answer to this is unknown command, but this command exist.. Sorry for my english :D

Bilal Pro 04-18-2012 14:18

Re: How to write?
 
PHP Code:

register_concmd("command""callback"


Artifact 04-18-2012 14:25

Re: How to write?
 
I dont get it... use #cstrike_something for example

EpicMonkey 04-18-2012 15:33

Re: How to write?
 
show your code?

Artifact 04-18-2012 16:51

Re: How to write?
 
I just started with this coded...
Just need this... Use:
PHP Code:

public client_connect(id)
{
if(
is_user_bot(id)) return PLUGIN_HANDLED;
else
{
console_cmd(id"#cstrike_something")
}
return 
PLUGIN_HANDLED;



fysiks 04-19-2012 00:37

Re: How to write?
 
What is "#counterstrike_something"???? Does it work in your console when you type it in manually?

Artifact 04-19-2012 18:56

Re: How to write?
 
This command is in some file in valve folder...

fysiks 04-19-2012 21:50

Re: How to write?
 
Quote:

Originally Posted by Artifact (Post 1692605)
This command is in some file in valve folder...

Is there some reason that you can't just say what the command is?

What are you actually trying to do?

Artifact 04-20-2012 11:08

Re: How to write?
 
#ServerBrowser_AddCurrentServer

claudiuhks 04-20-2012 11:40

Re: How to write?
 
Quote:

Originally Posted by Artifact (Post 1692961)
#ServerBrowser_AddCurrentServer

This is not a valid command, type cmdlist to see a list of valid commands.


All times are GMT -4. The time now is 07:46.

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