Raised This Month: $ Target: $400
 0% 

Solved block teamattack message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-07-2022 , 18:33   Re: block teamattack message
Reply With Quote #1

It isn't SayText, it is TextMsg.

https://github.com/s1lentq/ReGameDLL...ayer.cpp#L1072
https://github.com/s1lentq/ReGameDLL.../util.cpp#L660

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("TextMsg"), "message_TextMsg") } // Credits to Johnny got his gun public message_TextMsg() {     new szBuffer[40];     get_msg_arg_string(2, szBuffer, 39)         if (!equali(szBuffer, "#Game_teammate_attack"))         return PLUGIN_CONTINUE;         return PLUGIN_HANDLED; }
__________________









Last edited by CrazY.; 01-07-2022 at 18:37.
CrazY. is offline
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 01-07-2022 , 18:54   Re: block teamattack message
Reply With Quote #2

Quote:
Originally Posted by CrazY. View Post
It isn't SayText, it is TextMsg.

https://github.com/s1lentq/ReGameDLL...ayer.cpp#L1072
https://github.com/s1lentq/ReGameDLL.../util.cpp#L660

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("TextMsg"), "message_TextMsg") } // Credits to Johnny got his gun public message_TextMsg() {     new szBuffer[40];     get_msg_arg_string(2, szBuffer, 39)         if (!equali(szBuffer, "#Game_teammate_attack"))         return PLUGIN_CONTINUE;         return PLUGIN_HANDLED; }
Thanks, it worked
The overrated maniac 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:32.


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