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

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 12-18-2021 , 05:53   ...
Reply With Quote #1

...

Last edited by Cristian505; 08-10-2022 at 14:18.
Cristian505 is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-18-2021 , 07:58   Re: "x attacked a teammate" and "You killed a teammate"
Reply With Quote #2

Quote:
Originally Posted by Cristian505 View Post
Hello! Anyone know how to remove these messages? They are so annoying...
https://imgur.com/a/EBZQo6b
I tryied this plugin but not work.

Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("D7 block saytext team attack", "0.0.1", "D i 5 7 i n c T, Johnny got his gun")
	
	register_message(get_user_msgid("SayText"), "message_SayText")
}

// Credits to Johnny got his gun
public message_SayText()
{
	if (get_msg_args() > 4)
		return PLUGIN_CONTINUE;
	
	static szBuffer[40];
	get_msg_arg_string(2, szBuffer, 39)
	
	if (!equali(szBuffer, "#Cstrike_TitlesTXT_Game_teammate_attack"))
		return PLUGIN_CONTINUE;
	
	return PLUGIN_HANDLED;
}
Check lang of this plugin
__________________
Thank You For Helps
Discord:
null.#0096
https://www.youtube.com/@NullHere/
SHIFT0 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 12-18-2021 , 08:03   Re: "x attacked a teammate" and "You killed a teammate"
Reply With Quote #3

From cstrike/resources/cstrike_english.txt
Quote:
"Cstrike_TitlesTXT_Killed_Teammate" "You killed a teammate!"
You should replace Cstrike_TitlesTXT_ with a hash "#". This should work

Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("D7 block saytext team attack", "0.0.1", "D i 5 7 i n c T, Johnny got his gun")
	
	register_message(get_user_msgid("SayText"), "message_SayText")
}

// Credits to Johnny got his gun
public message_SayText()
{
	new buffer[40]
	get_msg_arg_string(2, buffer, charsmax(buffer))
	
	if (!equali(buffer, "#Killed_Teammate"))
		return PLUGIN_CONTINUE;
	
	return PLUGIN_HANDLED;
}
__________________









Last edited by CrazY.; 12-18-2021 at 08:04.
CrazY. is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 12-18-2021 , 09:27   Re: "x attacked a teammate" and "You killed a teammate"
Reply With Quote #4

...

Last edited by Cristian505; 08-10-2022 at 14:18.
Cristian505 is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 12-18-2021 , 10:38   Re: "x attacked a teammate" and "You killed a teammate"
Reply With Quote #5

...

Last edited by Cristian505; 08-10-2022 at 14:18.
Cristian505 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-18-2021 , 11:14   Re: "x attacked a teammate" and "You killed a teammate"
Reply With Quote #6

Yeah the team attack message is sent via TextMsg and not SayText, SayText msg is used for clients only to send messages.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-18-2021 at 11:14.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 08:53.


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