Hi there
Few small questions about plugin performance
1) Which way is better?
PHP Code:
register_clcmd("say /command","sayCommand")
or
PHP Code:
register_clcmd("say","hook_say_and_search")
2) Why amxmodx default plugins check users access level twice?
in register_clcmd
i.e
PHP Code:
register_clcmd("say /command","sayCommand",ADMIN_KICK,"Whatever")
and then it check again in sayCommand()
i.e
PHP Code:
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
3) Is it right to do?
PHP Code:
new plugon
public plugin_init(){
register_plugin("moo","moo","mooo")
plugon = register_cvar("amx_whatever","1")
switch(plugon){
case 1:{
if plugon is 1 to register events,ham,command etc.
}
}
}

__________________