Advertisement
FlacoBey

Untitled

May 27th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include sourcemod
  2. #include sdktools
  3.  
  4. public void OnPluginStart()
  5. {
  6.     HookEvent("player_hurt", h)
  7. }
  8.  
  9. public Action h(Handle event, const char[] name, bool dontbroadcast)
  10. {
  11.     int client = GetClientOfUserId(GetEventInt(event, "userid"))
  12.     int dmg = GetEventInt(event, "dmg_health")
  13.     PrintToChatAll("%i - %N", dmg, client)
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement