View Single Post
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-12-2018 , 12:57   Re: CS:GO Show HUD Text above Crosshair Killed by: "PLAYER"
Reply With Quote #2

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);
    
    
ShowHudText(iVictim, -1"You got killed by %d"iAttacker);


Last edited by mug1wara; 07-12-2018 at 15:09.
mug1wara is offline