27.02.2019, 11:22
Is there a way to dynamically list all the commands to a player? Here's the equivelant in y_commands format:
pawn Code:
YCMD:commands(playerid, params[], help)
{
if(help) SendClientMessage(playerid, 0xFF0000AA, "Lists all the commands a player can use.");
else
{
new count = Command_GetPlayerCommandCount(playerid);
for (new i = 0; i != count; ++i)
{
SendClientMessage(playerid, 0xFF0000AA, Command_GetNext(i, playerid));
}
}
return 1;
}