Quote:
Originally Posted by mug1wara
PHP Code:
#include <sourcemod>
#pragma semicolon 1
public void OnPluginStart() { HookEvent("player_death", Event_Death); }
public Action Event_Death(Event hEvent, const char[] sName, bool bDontBroadcast) { int iVictim = GetClientOfUserId(hEvent.GetInt("userid")); int iAttacker = GetClientOfUserId(hEvent.GetInt("attacker")); SetHudTextParams(-1.0, -0.95, 1.0, 255, 255, 255, 255); for (int i = 1; i <= MaxClients; i++) ShowHudText(i, -1, "%d Killed %d", iAttacker, iVictim); }
|
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.