Raised This Month: $ Target: $400
 0% 

Custom killfeed icon?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FrAgOrDiE
AlliedModders Donor
Join Date: May 2018
Location: Italy
Old 03-02-2021 , 19:06   Custom killfeed icon?
Reply With Quote #1

Hey, does everyone know how to implement a custom svg icon as a killfeed weapon indicator?
The code should be ok, I'm just unsure what the file name should be, and where the file should be placed. Should the svg file have specific sizes? Could anyone help with this?
What I have done is:
PHP Code:
Event event CreateEvent("player_death"true);

event.SetString("weapon""awp_custom_icon_bz");
event.SetInt("userid"GetClientUserId(param1));
event.SetInt("attacker"GetClientUserId(param1));
event.SetInt("assister"0);
event.SetBool("headshot"false);
event.SetBool("penetrated"false);
event.SetBool("revenge"false);
event.SetBool("dominated"false);

for (
int i 1<= MaxClientsi++)if (IsClientInGame(i) && !IsFakeClient(i))
    
event.FireToClient(i);

event.Cancel(); 
I placed my logo into csgo/materials/panorama/images/icons/equipment/
what am I missing? When this code is executed I get a killfeed with no icon:

The file gets correctly precached on map start.
__________________
Add me on discord: FrAgOrDiE#5182
Add me on steam: https://steamcommunity.com/id/fragordie002/
Join my discord server: http://discord.gg/JpAUXMn
FrAgOrDiE is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode