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

No 'kill' in console (blocks or punishes for suicide)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-08-2006 , 13:24   No 'kill' in console (blocks or punishes for suicide)
Reply With Quote #1

So you're probably thinking " W0oT! Now my Play0rZ n0 can su1c1d0r!! "
And I'll tell you now; It will.

This simple plugin will either block a player from suiciding or punish him, see cvars.

This wasn't supposed to be my first plugin, but oh whatever.

Commands:
Put amx_cvar in front of the cvars below

Cvars:
Code:
amx_nokill 1		//	if 0, lets players suicide without punishment
amx_nokill_block 1	//	if 1, the player can't suicide at all - This will disable punish mode (kick, cash and name have no effect)
amx_nokill_kick 0	//	if 1, kicks suiciders as soon as they suicide
amx_nokill_warn 1	//	warn 3 times, then kick
amx_nokill_cash 1	//	if 1, removes all cash on suicide
amx_nokill_name 1	//	if 1, chooses an ugly name for the suicider
Players with immunity (ADMIN_IMMUNITY Flag) are not affected by punishments.

Last edited by ConnorMcLeod; 10-18-2011 at 00:49. Reason: Removed attachment containing slowhack
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 07-08-2006 , 14:56   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #2

Why dont you just block him from killing himself instead, would make this plugin alot simpler.
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-08-2006 , 16:08   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #3

Because they might be doing it cuz they're stuck,

and I dont know how to do it.

EDIT: I have taken care of both of the preceding statements ^^

Last edited by Throstur; 07-10-2006 at 17:41.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-08-2006 , 16:25   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #4

You should make it so it kicks them after XX warnings. Also, you shouldn't make it change their name.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 07-08-2006 , 16:42   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #5

Quote:
Originally Posted by Throstur
Because they might be doing it cuz they're stuck,

and I dont know how to do it.
Maybe add that option as a cvar. (For if simply block or punish.)
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
ThomasNguyen
Senior Member
Join Date: May 2006
Old 07-08-2006 , 17:23   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #6

Quote:
Originally Posted by v3x
You should make it so it kicks them after XX warnings. Also, you shouldn't make it change their name.
Thats a way better idea than changing their name and taking their cash away. because throstur's right, if there stuck then you shouldnt punish them, so maybe add something that detects if the player is stuck?[some how?]
__________________

Last edited by ThomasNguyen; 07-08-2006 at 18:01.
ThomasNguyen is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-08-2006 , 19:37   Re: No 'kill' Plugin (punishes for suicide)
Reply With Quote #7

HTML Code:
<strike>I got an idea about how to do that, only problem is that I need some little help for it to work...</strike>
done that
__________________

Last edited by Throstur; 07-13-2006 at 03:32.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-12-2006 , 07:48   Re: No 'kill' in console (blocks or punishes for suicide)
Reply With Quote #8

UPDATED to now using pcvars, and added a warning system
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Old 07-12-2006, 21:57
Charming
This message has been deleted by v3x. Reason: requested by Charming :D
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 07-12-2006 , 22:01   Re: No 'kill' in console (blocks or punishes for suicide)
Reply With Quote #9

Quote:
Originally Posted by Charming
I made a easyer killblock plugin no cmds or anything like that :/
Oops sorry bout double post cant delete i dont think..

Code:
// Kill Blocker // Made By Charming // Feel Free To Add Things To This And Release It // If you do post credits. Thanks #include <amxmodx> #include <amxmisc> // // When player types "/kill" on console // public client_kill(id) {     if(!get_cvar_num("ae_allow_suicide")) {         console_print(id,"Suicide is disabled on this server.");         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE }
Attached Files
File Type: sma Get Plugin or Get Source (killblocker.sma - 2171 views - 425 Bytes)

Last edited by Charming; 07-12-2006 at 22:11.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-12-2006 , 22:53   Re: No 'kill' in console (blocks or punishes for suicide)
Reply With Quote #10

you can also just register_clcmd("kill",...)

EDIT: nevermind, didn't realize that's what he's using now
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 02:51.


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