Иконка ресурса

Hide Knife Feature 1.0.0

Нет прав для скачивания
C-подобный:
#if defined _hideknife_included
  #endinput
#endif
#define _hideknife_included

/**
 * Fired after a player changes their hide-knife setting.
 *
 * @param playerIndex   Player who changed the setting.
 * @param team          Team the setting applies to (TEAM_TERRORIST or TEAM_CT).
 * @param hidden        New value — true means knife is hidden.
 */
forward hk_on_changed(const playerIndex, const TeamName: team, const bool: hidden);

/**
 * Returns whether knife is hidden for a player on a given team.
 *
 * @param playerIndex   Player index.
 * @param team          TEAM_TERRORIST or TEAM_CT.
 * @return              true if knife is hidden.
 */
native bool: hk_is_hidden(const playerIndex, const TeamName: team);

/**
 * Programmatically sets the hide-knife state for a player.
 * Applies the viewmodel change immediately if the player
 * is alive and holding a knife on the given team.
 *
 * @param playerIndex   Player index.
 * @param team          TEAM_TERRORIST or TEAM_CT.
 * @param hidden        Desired state.
 */
native hk_set_hidden(const playerIndex, const TeamName: team, const bool: hidden);
Назад
Верх