Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3. #include <sdkhooks>
  4.  
  5. public OnClientPutInServer(client)
  6. {
  7. SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
  8. }
  9.  
  10. public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
  11. {
  12. new String:Weapon[32];
  13. GetEdictClassname(inflictor, Weapon, sizeof(Weapon));
  14.  
  15. if(StrEqual(Weapon, "weapon_awp") || StrContains(Weapon, "he") != -1)
  16. {
  17. damage = 200.0;
  18. PrintToChat(attacker, "You give %d dmg", damage);
  19. return Plugin_Changed;
  20. }
  21.  
  22. return Plugin_Continue;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement