Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OnPluginStart()
- {
- HookEvent("player_hurt", Player_Life);
- }
- public Action Player_Life(Handle event, const char[] name, bool dontBroadcast)
- {
- int attacked = GetClientOfUserId(GetEventInt(event, "userid"));
- int iLife = GetClientHealth(attacked);
- if (!IsClientInGame(attacked))
- {
- PrintToChat(attacked, "Rejoins les T ou CT");
- return Plugin_Handled;
- }
- else if(IsClientInGame(attacked))
- {
- SetHudTextParams(0.043, -1.0, 1000.0, 5, 200, 255, 50, 2, 6.0, 0.1, 0.1);
- ShowHudText(attacked, -1, "HP: %s", iLife);
- return Plugin_Handled;
- }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement