Premium Реклама Spotlight Bundles Boost Банери Кредити
Основно Начало Сървъри Marketplace Форум Сървъри
Общности Хостинг Добави Auction Boost
Ресурси
Библиотеки Карти Видеа Магазин Bundles
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
TOP SERVER
[IG] Easy Surf | Ramp Fix | RANKS | REPLAYS
Counter-Strike 1.6
surf_flyin_fortress
40.160.19.36:27015
18.05 18:49
10/64
188ms
/ Библиотеки / 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
PrivateServ.NET