Hi guys. A simple question here.
Does PAWN/AMX allow to redefine methods?
I mean, supose i'm using admincmd.amxx in my server, and i do a plugin foo.amxx where i register a console command called amx_kick
PHP Code:
register_concmd("amx_kick", "cmdKick", ADMIN_KICK, "<name or #userid> [reason]")
and the method cmdKick is something like this:
PHP Code:
public cmdKick(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
if (MY_CONDITION)
return PLUGIN_HANDLED
else
return PLUGIN_CONTINUE
}
If i do amx_kick, which amx_kick will amx use? the one from admincmd or the one from foo.amxx?
Thanks
__________________