VIP Boost Банери Кредити
Основно Начало Сървъри Marketplace Новини Форум Сървъри
Общности Хостинг Добави Boost
Ресурси
Библиотеки Карти Видеа Магазин
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
/ Библиотеки / cs_weap_models_api.inc

cs_weap_models_api.inc

.inc 1.5 KB 52 реда 04.04.2026
Pawn / AMX Mod X
#if defined _cs_weap_models_api_included
  #endinput
#endif
#define _cs_weap_models_api_included

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib cs_weap_models_api
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib cs_weap_models_api
	#endif
#else
	#pragma library cs_weap_models_api
#endif

/**
 * Sets a custom view model for a specific weapon for a player.
 *
 * Note: if you pass an empty string, model will be hidden.
 *
 * @param id					Player index.
 * @param weaponid				Weapon to replace model for. (in CSW_ format)
 * @param view_model			Full path to model. (e.g. "models/v_knife_custom.mdl")
 */
native cs_set_player_view_model(id, weaponid, const view_model[])

/**
 * Restores a custom view model for a specific weapon for a player.
 *
 * @param id					Player index.
 * @param weaponid				Weapon to restore model for. (in CSW_ format)
 */
native cs_reset_player_view_model(id, weaponid)

/**
 * Sets a custom weapon model for a specific weapon for a player.
 *
 * Note: if you pass an empty string, model will be hidden.
 *
 * @param id					Player index.
 * @param weaponid				Weapon to replace model for. (in CSW_ format)
 * @param view_model			Full path to model. (e.g. "models/p_knife_custom.mdl")
 */
native cs_set_player_weap_model(id, weaponid, const weapon_model[])

/**
 * Restores a custom weapon model for a specific weapon for a player.
 *
 * @param id					Player index.
 * @param weaponid				Weapon to restore model for. (in CSW_ format)
 */
native cs_reset_player_weap_model(id, weaponid)
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <cs_weap_models_api>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe