Raised This Month: $32 Target: $400
 8% 

Problems with register_concmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
orel56000
Member
Join Date: Apr 2015
Old 06-21-2018 , 08:30   Problems with register_concmd
Reply With Quote #1

I have done this:

Code:
public plugin_init()
{
	register_concmd("amx_orel1", "cmdOrel", ADMIN_KICK, "does nothing");
}

public cmdOrel(id, level, cid)
{
	client_print(0, print_chat, "%i", level);
	return 1;
}
When I write amx_orel in the console it prints me 4 (ADMIN_KICK).

But if I change the command access, it is stuck at the first access I have done:

Code:
public plugin_init()
{
	register_concmd("amx_orel1", "cmdOrel", ADMIN_BAN, "does nothing");
}

public cmdOrel(id, level, cid)
{
	client_print(0, print_chat, "%i", level);
	return 1;
}
prints 4 also...


It is bug or something, or I don't know how to use this command?
orel56000 is offline
 



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


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