View Single Post
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