GET ALL COMMANDS
#1

Possible to get all commands? ZCMD.
Reply
#2

what u mean?
Reply
#3

You can get a list of the commands are used to a script by using y_amx (part of YSI). I don't know if it differs in YSI 3.1 and YSI 4 (which I used).

PHP код:
#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_PUBLICScountbuffer"cmd_")))
{
    if (!
strcmp(buffer"zcmd_OnGameModeInit") || !strcmp(buffer"zcmd_OnFilterScriptInit")) continue;
    
strmid(bufferbuffer4strlen(buffer), sizeof buffer);
    
strins(buffer"/"0sizeof buffer);
    
strcat(list, buffersizeof list);
    
strcat(list, "\n"sizeof list);
}
print(list); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)