Raised This Month: $ Target: $400
 0% 

[TF2] Killing players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rotab
Junior Member
Join Date: Dec 2005
Location: Sweden
Old 01-16-2010 , 10:49   [TF2] Killing players
Reply With Quote #1

I'm having troubles killing players in TF2.
I use SetEntityHealth(client, 0) but they dont die. They can still jump and shoot, and Medics lose their HP but they just reg as usual.

I tried SetEntProp(client, Prop_Data, "m_iHealth", 0) but that didn't work either.
rotab is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 01-16-2010 , 11:42   Re: [TF2] Killing players
Reply With Quote #2

ForcePlayerSuicide(client)
http://docs.sourcemod.net/api/index....ad=show&id=41&
Pawn 3-pg is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 01-16-2010 , 14:13   Re: [TF2] Killing players
Reply With Quote #3

Ya what he said. There is also: FakeClientCommand(client, "kill"); but id use the above one before that.

I have seen a few other people use that health method for killing players, but I do not know the reason for that.

Last edited by retsam; 01-16-2010 at 14:16.
retsam is offline
Kevin_b_er
SourceMod Donor
Join Date: Feb 2009
Old 01-16-2010 , 14:58   Re: [TF2] Killing players
Reply With Quote #4

I'd advocate ForcePlayerSuicide, but setting their health to negative should kill them too.
Kevin_b_er is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-16-2010 , 15:20   Re: [TF2] Killing players
Reply With Quote #5

Speaking of killing players, is there a way to force a player to kill a player? Like, someone dies, but it says the person that killed them was x.
noodleboy347 is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 01-16-2010 , 15:37   Re: [TF2] Killing players
Reply With Quote #6

Quote:
Originally Posted by noodleboy347 View Post
Speaking of killing players, is there a way to force a player to kill a player? Like, someone dies, but it says the person that killed them was x.
http://forums.alliedmods.net/showthread.php?t=111684 or look and see how I do it in RTD.
pheadxdll is offline
rotab
Junior Member
Join Date: Dec 2005
Location: Sweden
Old 01-16-2010 , 16:49   Re: [TF2] Killing players
Reply With Quote #7

Quote:
Originally Posted by Kevin_b_er View Post
but setting their health to negative should kill them too.
Tried that too, didn't work.

ForcePlayerSuicide works fine, thanks.
rotab is offline
Reply



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 00:30.


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