miguelspastes

Ezfragz killsay

Jan 15th, 2019
1,589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. top being a noob! Get good with www.EZfrags.co.uk",
  2. [3] = "I'm not using www.EZfrags.co.uk, you're just bad",
  3. [4] = "You just got pwned by EZfrags, the #1 CS:GO cheat",
  4. [5] = "If I was cheating, I'd use www.EZfrags.co.uk",
  5. [6] = "Think you could do better? Not without www.EZfrags.co.uk",
  6.  
  7. }
  8.  
  9. function CHAT_KillSay( Event )
  10.  
  11. if ( Event:GetName() == 'player_death' ) then
  12.  
  13. local ME = client.GetLocalPlayerIndex();
  14.  
  15. local INT_UID = Event:GetInt( 'userid' );
  16. local INT_ATTACKER = Event:GetInt( 'attacker' );
  17.  
  18. local NAME_Victim = client.GetPlayerNameByUserID( INT_UID );
  19. local INDEX_Victim = client.GetPlayerIndexByUserID( INT_UID );
  20.  
  21. local NAME_Attacker = client.GetPlayerNameByUserID( INT_ATTACKER );
  22. local INDEX_Attacker = client.GetPlayerIndexByUserID( INT_ATTACKER );
  23.  
  24. if ( INDEX_Attacker == ME and INDEX_Victim ~= ME ) then
  25.  
  26. local response = tostring(killsays[math.random(#killsays)]);
  27. response = response:gsub("_name_", NAME_Victim);
  28. client.ChatSay( ' ' .. response );
  29.  
  30. end
  31.  
  32. end
  33.  
  34. end
  35.  
  36. client.AllowListener( 'player_death' );
  37.  
  38. callbacks.Register( 'FireGameEvent', 'AWKS', CHAT_KillSay );
Advertisement
Add Comment
Please, Sign In to add comment