AMX Mod X API Documentation

Signature
native get_srvcmd(index, server_cmd[], len1, &flags, info[], len2, flag, &bool:info_ml = false);
Description

Retrieves information about a server command.

Notes
  • For a list of possible access flags, see the ADMIN_* constants in

    amxconst.inc

Parameters
  • index Command index
  • server_cmd Buffer to copy command name to
  • len1 Maximum name buffer size
  • flags Variable to store privilege flags to
  • info Buffer to copy command description to
  • len2 Maximum description buffer size
  • flag Only considers commands that can be accessed with

    the specified privilege flags

  • info_ml Variable to store whether the parameter "info" is a multilingual key
Returns

1 on success, 0 if command was not found

Назад
Верх