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

Block user_kill Suicide


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 08-05-2016 , 05:37   Block user_kill Suicide
Reply With Quote #1

Hey

In my many plugins I use user_kill()
In my CTF server it gives suicide message and also reduces players adrenaline
Is there any another way so as to prevent this
ish12321 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-05-2016 , 06:15   Re: Block user_kill Suicide
Reply With Quote #2

user_silentkill()
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ish12321
Veteran Member
Join Date: May 2016
Old 08-05-2016 , 11:21   Re: Block user_kill Suicide
Reply With Quote #3

With this in top right do we get killer killed user symbol instead of suicide symbol
ish12321 is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 08-05-2016 , 12:27   Re: Block user_kill Suicide
Reply With Quote #4

You want to prevent players from killing themselves? Like "kill" in consol?
__________________
Like my clean plugins and work?
Baws is offline
ish12321
Veteran Member
Join Date: May 2016
Old 08-05-2016 , 14:11   Re: Block user_kill Suicide
Reply With Quote #5

I have a plugin which has a gun
The gun kills player when his hp<damage

So I want that instead of suicide player dies like normally

And even in right top corner there is name of both killed and victim with a gun symbol in between
ish12321 is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 08-05-2016 , 14:16   Re: Block user_kill Suicide
Reply With Quote #6

You just want to disable self-harm?

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

public plugin_init()
{
    
register_plugin("No Self-Kill""1.0""redivcram");
    
    
RegisterHam(Ham_TakeDamage"player""playerDamage");
    
    
register_clcmd("kill""cmdKill");
}

public 
cmdKill(id)
    return 
PLUGIN_HANDLED;

public 
playerDamage(victim_attacker)
{
    if(
victim == attacker)
        return 
HAM_OVERRIDE;

Not tested
redivcram is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2016 , 01:27   Re: Block user_kill Suicide
Reply With Quote #7

Quote:
Originally Posted by ish12321 View Post
I have a plugin which has a gun
The gun kills player when his hp<damage

So I want that instead of suicide player dies like normally

And even in right top corner there is name of both killed and victim with a gun symbol in between
You should post a link to the plugin or attach the .sma file so that we can see what exactly the plugin you use does. If it works like you describe, the code will need to be fixed.
__________________
fysiks is offline
ish12321
Veteran Member
Join Date: May 2016
Old 08-09-2016 , 07:24   Re: Block user_kill Suicide
Reply With Quote #8

Actually I'm just editing the Sentry Gun plugin of CTF

In original we get suicide message when we die from sentry gun leading to loss of adrenaline and so I wanted that instead of that there's a way in which we get kill of the type when we kill someone with ak47 or other gun

I want that in counter strike instead of suicide symbol on right top side we get the symbol when someone kills other with gun in such a way that killer is the guy planting the sentry there
ish12321 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-09-2016 , 19:55   Re: Block user_kill Suicide
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
You should post a link to the plugin
__________________
fysiks is offline
ish12321
Veteran Member
Join Date: May 2016
Old 08-10-2016 , 08:15   Re: Block user_kill Suicide
Reply With Quote #10

Couldn't you find it on alliedmods ?
ish12321 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 11:43.


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