execCmd(const id, const cmd[]) {
#define MAX_ARG_LENGTH 64
new args[3][MAX_ARG_LENGTH];
for (new i = 0, pos = 0; i < 3; i++) {
arrayset(args[i], 0, MAX_ARG_LENGTH);
if (pos >= 0) {
pos = argparse(cmd, pos, args[i], MAX_ARG_LENGTH - 1);
}
}
amxclient_cmd(id, args[0], args[1], args[2]);
}