[CSGO] CSGO items - plugin
4 Attachment(s)
Here's some dumb plugin, which should help you get CSGO weapon "item" name,
which are listed in ...scripts/items/items_game.txt What this MAIN plugin do: - It read items_game.txt file and copy "items" list in own global KeyValue structure. You can see plugin "items" collection on server console when type command sm_csgo_items_game_show_items - Create two natives, which can be use in your own plugin.
CSGO items Natives
Installation: - Load csgo_items.smx in your server. Scripting: - Move csgo_items.inc in your ...sourcemod/scripting/include folder. - In your own plugin, #include that file Code:
More: This ain't perfect tough :bee: https://forums.alliedmods.net/attach...1&d=1404149918 |
Re: [CSGO] CSGO items - plugin
Quote:
Code:
"model_player" "models/weapons/v_knife_default_ct.mdl" |
Re: [CSGO] CSGO items - plugin
Quote:
There is mod own event player_death with outputs There is your answer.
csgo modevents.res player_death
|
Re: [CSGO] CSGO items - plugin
Quote:
But seems after previous(es) csgo updates, "weapon" string return already with weapon right item name. I tough it still return with default entity classname :roll: (or what was that proplem...) I get confused and I assume now you want weapon item index from event weapon name ? PHP Code:
|
Re: [CSGO] CSGO items - plugin
Quote:
Didn't understand first where you did get that ct knife name. Yes, seems not all event weapon name match with item name, bug. Code:
event knife_t csgo items weapon_knife_t item_index 59
Spoiler
|
Re: [CSGO] CSGO items - plugin
Are giving the following error in the server error log:
Quote:
|
Re: [CSGO] CSGO items - plugin
That might be whole different version
You maybe use this one CSGO Items API Quote:
|
All times are GMT -4. The time now is 17:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.