Skip to content

Instantly share code, notes, and snippets.

@rumblefrog
Created January 12, 2017 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rumblefrog/f7aa44e3ae6659d023cbdf4f76bc63b1 to your computer and use it in GitHub Desktop.
Save rumblefrog/f7aa44e3ae6659d023cbdf4f76bc63b1 to your computer and use it in GitHub Desktop.
public Action CmdGetCommands(int client, int args)
{
char buffer[64];
for (int i = 0; i < GetArraySize(cb); i++)
{
GetArrayString(cb, i, buffer, sizeof(buffer));
ReplyToCommand(client, "%s s", buffer);
}
return Plugin_Handled;
}
#output
sm_votespeed
s
sm_test1
s
sm_votecount
s
sm_test2
s
sm_test3 s
#File content
sm_votespeed
sm_votecount
sm_test1
sm_test2
sm_test3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment