AlliedModders

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

gamer99 08-03-2011 13:36

register_concmd
 
how to register_concmd so that normal player can use that command ?

fysiks 08-03-2011 13:42

Re: register_concmd
 
All players can use any console command that is registered. The only way that anything is restricted is if you put code in the command to skip any functionality if they do not meet certain criteria.

So, just register it like normal.

Korxu 08-03-2011 13:43

Re: register_concmd
 
Register a concmd?
PHP Code:

public plugin_init()
{
     
register_concmd("hello""say_hello")
     
//...
}
public 
say_hello id )
{
     
client_print(idprint_chat"Hello world!")




All times are GMT -4. The time now is 03:22.

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