Raised This Month: $32 Target: $400
 8% 

[Request]slay on friendly fire


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hiral
Junior Member
Join Date: Feb 2021
Old 02-10-2021 , 00:18   [Request]slay on friendly fire
Reply With Quote #1

Hello, I am looking for plugin which slays players [teammates]if they try shooting and damaging other teammate even by mistake.
Hiral is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-10-2021 , 00:47   Re: [Request]slay on friendly fire
Reply With Quote #2

https://forums.alliedmods.net/showth...=61572?t=61572
__________________

Mordekay is offline
Hiral
Junior Member
Join Date: Feb 2021
Old 02-10-2021 , 03:31   Re: [Request]slay on friendly fire
Reply With Quote #3

Thanks but I already tried that plugin it just slays when you completely kill your teammate but I am looking for a plugin which instantly slays the player who attacked teammate and damaged even 1hp
Hiral is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-10-2021 , 10:26   Re: [Request]slay on friendly fire
Reply With Quote #4

Then you did not check the options correctly.
__________________

Mordekay is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 02-10-2021 , 11:19   Re: [Request]slay on friendly fire
Reply With Quote #5

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "My Computer"

#define MAX_DAMAGE 1.0

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_TakeDamage, "player", "Event_TakeDamage");
}

public Event_TakeDamage(victim, inflictor, attacker, Float:damage, dmgbits)
{
	if(inflictor == 0)
		return HAM_IGNORED;
	
	if(!is_user_alive(attacker))
		return HAM_IGNORED;
	
	if(!users_in_same_team(attacker,victim))
	         return HAM_IGNORED;
	 
	if(damage > MAX_DAMAGE)
	{
		SetHamParamFloat(4, MAX_DAMAGE);
		user_kill(attacker)
	}
	return HAM_HANDLED;
}

stock users_in_same_team(id,enemy)
{
	if(cs_get_user_team(id) == cs_get_user_team(enemy))
		return PLUGIN_HANDLED
	return PLUGIN_CONTINUE
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-10-2021 , 11:28   Re: [Request]slay on friendly fire
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=107478
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-10-2021 , 14:05   Re: [Request]slay on friendly fire
Reply With Quote #7

Why slay them when you can prevent it from happening? Also, why have friendly fire enabled if you don't want players to use it?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-10-2021 , 14:17   Re: [Request]slay on friendly fire
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Why slay them when you can prevent it from happening? Also, why have friendly fire enabled if you don't want players to use it?
Exactly my thoughts. Is it just me or is the percentage of silly requests getting higher and higher?

Quote:
Originally Posted by Hiral View Post
Hello, I am looking for plugin which slays players [teammates]if they try shooting and damaging other teammate even by mistake.
If you don't want them to attack teammates simply turn ff off.

Or

Use A.T.A.C. to mirror the damage they deal. This way they only kill themselves and not the one they are attacking.
__________________

Mordekay 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 01:14.


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