Functions

cstrike.inc

Function Type Description
CS_InternalCommand forward Called when CS internally fires a command to a player.
CS_OnBuy forward Called when a client purchases an item.
CS_OnBuyAttempt forward Called when a client attempts to purchase an item.
cs_create_entity native Creates an entity using Counter-Strike's custom CreateNamedEntity wrapper.
cs_find_ent_by_class native Finds an entity in the world using Counter-Strike's custom FindEntityByString
wrapper.
cs_find_ent_by_owner native Finds an entity in the world using Counter-Strike's custom FindEntityByString
wrapper, matching by owner.
cs_get_armoury_type native Returns the armoury entity's weapon id.
cs_get_c4_defusing native Returns if the bomb is being defused.
cs_get_c4_explode_time native Returns the game time at which the bomb will explode.
cs_get_hostage_foll native Returns index of the entity that a hostage is following.
cs_get_hostage_id native Returns unique id of a hostage.
cs_get_hostage_lastuse native Returns the last time a hostage was used.
cs_get_hostage_nextuse native Returns the next time a hostage can be used.
cs_get_item_alias native Returns the alias name associated with an item index.
cs_get_item_id native Returns the item id associated with an item name and its aliases.
cs_get_no_knives native Returns if "no knives" mode is enabled.
cs_get_translated_item_alias native Returns an item name associated with a command alias.
cs_get_user_armor native Returns the client's armor value and retrieves the type of armor.
cs_get_user_bpammo native Returns amount of ammo in the client's backpack for a specific weapon.
cs_get_user_buyzone native Returns if the client is inside a buyzone.
cs_get_user_deaths native Returns client's deaths.
cs_get_user_defuse native Returns if the client has a defuse kit.
cs_get_user_driving native Returns if the client is currently driving a vehicle and if so, indicates
the speed.
cs_get_user_hasprim native Returns if the client has a primary weapon or a shield in the inventory.
cs_get_user_hostagekills native Returns the amount of hostages that the client has killed.
cs_get_user_lastactivity native Returns the client's last activity time.
cs_get_user_mapzones native Returns the map zones the client is inside of as a bitflag value.
cs_get_user_model native Retrieves the client's player model.
cs_get_user_money native Returns the client's amount of money.
cs_get_user_nvg native Returns if the client's has night vision goggles.
cs_get_user_plant native Returns if the client has the ability to plant the bomb.
cs_get_user_shield native Returns if the client has a shield in the inventory.
cs_get_user_stationary native Returns if the client is using a stationary gun.
cs_get_user_submodel native Returns if a submodel is set on the client.
cs_get_user_team native Returns the client's team and optionally the model id.
cs_get_user_tked native Returns if the client has committed a team kill in the current round.
cs_get_user_vip native Returns if the client is a VIP.
cs_get_user_weapon native Returns weapon index of the active weapon.
cs_get_user_weapon_entity native Returns active weapon entity.
cs_get_user_zoom native Returns if the client is zooming.
cs_get_weapon_ammo native Returns the amount of ammo in weapon's magazine.
cs_get_weapon_burst native Returns if the weapon is in burst mode.
cs_get_weapon_id native Returns the weapon id of an entity.
cs_get_weapon_info native Returns some information about a weapon.
cs_get_weapon_silen native Returns if the weapon is in silenced mode.
cs_get_weaponbox_item native Returns the weapon entity index that was packed into a weaponbox.
cs_reset_user_model native Resets the client's model.
cs_set_armoury_type native Sets the amoury entity type.
cs_set_c4_defusing native Sets if the bomb is being defused.
cs_set_c4_explode_time native Sets the game time at which the bomb will explode.
cs_set_ent_class native Sets a custom classname of an entity.
cs_set_hostage_foll native Sets hostage to follow an entity.
cs_set_hostage_lastuse native Sets the last time a hostage was used.
cs_set_hostage_nextuse native Sets the next time a hostage can be used.
cs_set_no_knives native Enables or disables the "no knives" mode.
cs_set_user_armor native Sets the client's armor value the type of armor.
cs_set_user_bpammo native Sets amount of ammo in the client's backpack for a specific weapon.
cs_set_user_deaths native Sets client's deaths.
cs_set_user_defuse native Sets the client's defusekit status and allows to set a custom HUD icon and
color.
cs_set_user_hostagekills native Sets the amount of hostages that the client has killed.
cs_set_user_lastactivity native Sets the client's last activity time.
cs_set_user_model native Sets the client's player model.
cs_set_user_money native Sets the client's amount of money.
cs_set_user_nvg native Sets the client's night vision goggles.
cs_set_user_plant native Sets the client's ability to plant the bomb and displays or hides the bomb
HUD icon.
cs_set_user_submodel native Sets the submodel on a client.
cs_set_user_team native Sets the client's team without killing the player, and sets the client model.
cs_set_user_tked native Sets the client's team kill status, indicating whether the client has
committed a team kill in the current round.
cs_set_user_vip native Sets the client's VIP status and displayed model and scoreboard flag.
cs_set_user_zoom native Sets a zoom type on the client.
cs_set_weapon_ammo native Sets the amount of ammo in weapon's clip.
cs_set_weapon_burst native Sets the weapon's burst mode.
cs_set_weapon_silen native Sets the weapon's silenced mode.
cs_user_spawn native Sets a dead client up for spawning.
cs_get_weapon_class stock Returns a weapon class id associated with a weapon id.
cs_is_valid_itemid stock Checks whether an item id is not out of bounds.