Raised This Month: $12 Target: $400
 3% 

[TF2 (or maybe anything else)] How to effectively kill player


Post New Thread Reply   
 
Thread Tools Display Modes
Naleksuh
Member
Join Date: Dec 2018
Old 12-10-2018 , 03:24   Re: [TF2 (or maybe anything else)] How to effectively kill player
Reply With Quote #11

and thanks for all the help from multiple people especially when i'm just being dumb
Naleksuh is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-10-2018 , 08:44   Re: [TF2 (or maybe anything else)] How to effectively kill player
Reply With Quote #12

Quote:
Originally Posted by Bacardi View Post
If you peek inside SourceMod base plugins, sm_slay


https://sm.alliedmods.net/new-api/sd...ePlayerSuicide
From experience, I've seen that function not work sometimes at random and I'm not sure why.

Quote:
Originally Posted by Naleksuh View Post
I tried both of these, they did not work. I have sdkhooks included...any other reason they might be failing?
Not sure, would have to look at your code. If you're passing an invalid index maybe? You also may need to define the attacker as yourself for TakeDamage and/or maybe use FakeClientCommandEx instead.
Drixevel is offline
Naleksuh
Member
Join Date: Dec 2018
Old 12-10-2018 , 16:56   Re: [TF2 (or maybe anything else)] How to effectively kill player
Reply With Quote #13

Were the zeros supposed to be changed to something? I did not change them.
Naleksuh is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-12-2018 , 04:53   Re: [TF2 (or maybe anything else)] How to effectively kill player
Reply With Quote #14

If ForcePlayerSuicide sometimes not help you, try additionally set client's properties your game engine usually set when player die normally, like these one (for L4d). You can find them using tEntDev, compairing all props between life and dead states.

---
Or you could deal him critical hp damage, like point_hurt entity or so.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-12-2018 at 05:03.
Dragokas is offline
Naleksuh
Member
Join Date: Dec 2018
Old 12-12-2018 , 17:54   Re: [TF2 (or maybe anything else)] How to effectively kill player
Reply With Quote #15

Found the solution. For anyone else in the future reading this, solution was
Code:
FakeClientCommandEx(client, "kill");
tried every other solution on this page, none of it worked.
Naleksuh is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode