View Single Post
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-12-2018 , 15:01   Re: CS:GO Show HUD Text above Crosshair Killed by: "PLAYER"
Reply With Quote #3

Quote:
Originally Posted by mug1wara View Post
PHP Code:
#include <sourcemod>

#pragma semicolon 1

public void OnPluginStart()
{
    
HookEvent("player_death"Event_Death);
}

public 
Action Event_Death(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
int iVictim GetClientOfUserId(hEvent.GetInt("userid"));
    
    
int iAttacker GetClientOfUserId(hEvent.GetInt("attacker"));
    
    
SetHudTextParams(-1.0, -0.951.0255255255255);
    
    for (
int i 1<= MaxClientsi++)
        
ShowHudText(i, -1"%d Killed %d"iAttackeriVictim);

thanks but i mean, only by the Victim will show the HUD Text: You got killed by: *PLAYER*

i have formulated incorrectly sorry, but this code will be also Help full for others.

Last edited by iskenderkebab33; 07-12-2018 at 15:20.
iskenderkebab33 is offline