Commands
The full list of commands is given below.
Command_GetID(funcname[]) - All the examples above used the command's name to set the permissions, if you want you can also use the ID, which this gets.
Command_SetPlayer(command, playerid, set) - Enables or disables a player's use of a command by ID.
Command_SetPlayerNamed(command[], playerid, set) - Enables or disables a player's use of a command by name.
Command_GetPlayer(command, playerid) - Gets a player's use of a command by ID.
Command_GetPlayerNamed(command[], playerid) - Gets a player's use of a command by name.
Command_AddAlt(oldid, altname[]) - Adds an alternate spelling for a command by ID.
Command_AddAltNamed(old[], altname[]) - Adds an alternate spelling for a command by name.
Command_ReProcess(playerid, cmdtext[], help) - Call to put text through the command processor, with the help functions enabled or disabled.
Command_GetName(id) - Get the name of a command by ID.
Command_GetDisplay(command, playerid) - Get the first found command name a player can type to get this functionality.
Command_GetDisplayNamed(command[], playerid) - Get the first found command name a player can type to get this functionality by name. For example:
pawn Код:
Command_GetDisplayNamed("help", playerid);
Will return "aiuto" for an Italian player and "help" for an English player.
Command_GetPlayerCommandCount(playerid) - Get the number of commands in the system the player can use.
Command_GetNext(index, playerid) - Used for looping through all the commands a player can use, not all the commands that exist.
Command_SetDeniedReturn(set) - If this is "false" the system will report a command you're not allowed to use as unknown. If it is "true" the system will not run the command but will not send a failure message.
Command_GetDeniedReturn() - Get the denied return current status.