18.05.2016, 13:21
Possible to get all commands? ZCMD.
#include <YSI\y_amx>
...
static
list[512], // change its value depending on how many commands you got
buffer[32],
count;
while ((count = AMX_GetName(AMX_TABLE_PUBLICS, count, buffer, "cmd_")))
{
if (!strcmp(buffer, "zcmd_OnGameModeInit") || !strcmp(buffer, "zcmd_OnFilterScriptInit")) continue;
strmid(buffer, buffer, 4, strlen(buffer), sizeof buffer);
strins(buffer, "/", 0, sizeof buffer);
strcat(list, buffer, sizeof list);
strcat(list, "\n", sizeof list);
}
print(list);