Raised This Month: $ Target: $400
 0% 

[SNIPPET] DoD:Source Force Player Suicide in SpawnArea


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-05-2008 , 10:40   [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #1

I've just been trying around finding a good way to kill a player that's
in the spawnarea when suddenly the idea came to my mind:

When do players always die, no matter in spawn or not??
- if they switch team!

And that's what I'm actually doing:
- Switch player to the opposite team
- Players dies
- Block the "X joined team Y" message
- Block the class selection menu
and then:
- Switch player back to his old team
- Block the "X joined team Y" message
- Block the class selection menu
that way the player is on his old class again when he respawns.

The player will not notice a difference to commiting suicide "the normal way"!

Tested and working!

See attached sample plugin and test it yourself with the command
"testsafekill"

Last edited by FeuerSturm; 01-28-2020 at 05:21.
FeuerSturm is offline
 



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 18:12.


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