Quote:
Originally Posted by Napoleon_be
@Black Rose; Thanks for the info, do you have any examples where it could be used to be efficient?
|
The bottom of my previous post contains what I would've used.
Or if you want to declutter the plugin_init() a bit and also include say_team:
Code:
public plugin_init() {
for( new i ; i < sizeof(szCommands); i++ )
register_clcmd_say(szCommands[i], "checkSettings");
//...
}
//...
stock register_clcmd_say(szCommand[], szFunction[]) {
new szTemp[32] = "say_team ";
copy(szTemp[9], charsmax(szTemp) - 4, szCommand);
register_clcmd(szTemp, szFunction);
szTemp[5] = 's';
//szTemp[6] = 'a'; // This is already the 'a' in the word "team"
szTemp[7] = 'y';
register_clcmd(szTemp[5], szFunction);
}
__________________