GET ALL COMMANDS
#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


Messages In This Thread
GET ALL COMMANDS - by 2k16 - 18.05.2016, 13:21
Re: GET ALL COMMANDS - by SyS - 18.05.2016, 14:35
Re: GET ALL COMMANDS - by Konstantinos - 18.05.2016, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)