Raised This Month: $ Target: $400
 0% 

register_concmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gamer99
Senior Member
Join Date: Jul 2011
Old 08-03-2011 , 13:36   register_concmd
Reply With Quote #1

how to register_concmd so that normal player can use that command ?
gamer99 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2011 , 13:42   Re: register_concmd
Reply With Quote #2

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.
__________________
fysiks is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 08-03-2011 , 13:43   Re: register_concmd
Reply With Quote #3

Register a concmd?
PHP Code:
public plugin_init()
{
     
register_concmd("hello""say_hello")
     
//...
}
public 
say_hello id )
{
     
client_print(idprint_chat"Hello world!")

Korxu is offline
Reply


Thread Tools
Display Modes

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 03:22.


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