Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sourcemod
- #include sdktools
- public void OnPluginStart()
- {
- HookEvent("player_hurt", h)
- }
- public Action h(Handle event, const char[] name, bool dontbroadcast)
- {
- int client = GetClientOfUserId(GetEventInt(event, "userid"))
- int dmg = GetEventInt(event, "dmg_health")
- PrintToChatAll("%i - %N", dmg, client)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement