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

Block Kill - Version: 1.2 (Jun 8, 2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
leonard19941
Veteran Member
Join Date: Jun 2011
Old 03-19-2012 , 21:26   Block Kill - Version: 1.2 (Jun 8, 2012)
Reply With Quote #1

Block Kill


Description

This is a simple plugin, block the use of the command you type in console called "kill", used to kill yourself.

CVARS

* amx_bkenabled: ( Default: 1 )
0 - Disabled Block Kill.
1 - Enable Block Kill.

* amx_bkteam: ( Default: 0 )
0 - Enable Block Kill for all Teams.
1 - Enable Block Kill only Terrorists.
2 - Enable Block Kill only Counter-Terrorists.

Changelog

Quote:
-Version: 1.0 (Mar 20, 2012)
* Public release.


- Version: 1.1 (Apr 13, 2012)
* Some minor fixes.
* Added CVAR to enable All Teams/T/CT.


- Version: 1.2 (Jun 8, 2012)
* Added text print center to enable block spray for All Teams/T/CT.
Attached Files
File Type: sma Get Plugin or Get Source (amx_blockkill.sma - 2178 views - 1.4 KB)
__________________

Last edited by leonard19941; 06-24-2012 at 07:20.
leonard19941 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-19-2012 , 21:45   Re: Block Kill
Reply With Quote #2

I'm confused. What is the point of this plugin? (The description makes no sense)
__________________
fysiks is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 03-19-2012 , 22:27   Re: Block Kill
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
I'm confused. What is the point of this plugin? (The description makes no sense)
sorry, im use google translate , fix
__________________
leonard19941 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-20-2012 , 03:00   Re: Block Kill
Reply With Quote #4

This plugin is useless.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
leonard19941
Veteran Member
Join Date: Jun 2011
Old 03-20-2012 , 03:04   Re: Block Kill
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
This plugin is useless.
-.-
__________________
leonard19941 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 03-20-2012 , 07:43   Re: Block Kill
Reply With Quote #6

Quote:
-,-
http://forums.alliedmods.net/showthread.php?p=624040
http://forums.alliedmods.net/showthread.php?p=349975

and

PHP Code:
#include <amxmodx> 
#include <fakemeta> 

public plugin_init() { 
    
register_plugin("Block Kill Command""1.0""xPaw"); 
    
register_forward(FM_ClientKill"fwdClientKill"); 


public 
fwdClientKill(id) { 
    if(!
is_user_alive(id)) 
        return 
FMRES_IGNORED

    
client_print(idprint_chat"[AMXX] You can't kill yourself!"); 
    
client_print(idprint_console"[AMXX] You can't kill yourself!"); 
    return 
FMRES_SUPERCEDE

__________________

Last edited by kiki33hun; 03-20-2012 at 07:44.
kiki33hun is offline
HiDeath
Senior Member
Join Date: Aug 2018
Location: Tunisia
Old 09-14-2019 , 11:27   Re: Block Kill - Version: 1.2 (Jun 8, 2012)
Reply With Quote #7

Thanks!
Very simple, basic and useful plugin.
HiDeath 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 18:27.


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