Quote:
|
Originally Posted by knekter
well you could do something like:
Code:
new const g_szCommands[4][] =
{
"Command1",
"Command2",
"Command3",
"Command4"
};
for(new iCmd = 0; iCmd < 4; iCmd++)
if(equali(check, g_szCommands[iCmd]))
return PLUGIN_HANDLED;
Or something like that to make the code look cleaner/nicer.
|
Perfect, thankyou!
Just for the record, Im listing the commands Im allowing, not trying to block. I decided that trying to block every possible rcon command would take much more time/space than just listing a few commands.