Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Remvoe Player Connect Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-19-2017 , 15:21   [ H3LP ] Remvoe Player Connect Message
Reply With Quote #1

Hello. So I want to remove the message Playername has joined the game, since I made my own script that shows when someone connects and also plays a sound on player connect/disconnect. Is it possible to block it using orpheu or ... ? Thanks !

Last edited by DarthMan; 06-20-2017 at 02:52. Reason: Solved
DarthMan is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-19-2017 , 15:24   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #2

What game are you talking about? Can you post a picture of the message?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-19-2017 , 15:24   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #3

If you made a plugin that shows the message and plays a sound, just remove the message?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-19-2017 , 15:26   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #4

Quote:
Originally Posted by EFFx View Post
If you made a plugin that shows the message and plays a sound, just remove the message?
No I mean, I want to disable the default connection message since I made my own and it displays 2 messages which is booring. It's for HL1
DarthMan is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-19-2017 , 15:28   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #5

Try that

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("TextMsg") , "block_message")
}
public 
block_message() 
{
    if(
get_msg_argtype(2) == ARG_STRING
    {
        new 
szValue[64]
        
get_msg_arg_string(szValue charsmax(szValue))
        if(
containi(szValue "has joined") != -1
        {
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-19-2017 , 15:31   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #6

Quote:
Originally Posted by EFFx View Post
Try that

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("TextMsg") , "block_message")
}
public 
block_message() 
{
    if(
get_msg_argtype(2) == ARG_STRING
    {
        new 
szValue[64]
        
get_msg_arg_string(szValue charsmax(szValue))
        if(
containi(szValue "has joined") != -1
        {
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

Works, ty

Last edited by DarthMan; 06-19-2017 at 15:45.
DarthMan is offline
SpannerSpammer
Member
Join Date: Mar 2006
Old 06-20-2017 , 01:00   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #7

Darthman, that code will not work for TFC since it
sends a localized string for the connect message.

This has been discussed before, see this thread:
https://forums.alliedmods.net/showthread.php?t=282768
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 06-20-2017 , 02:51   Re: [ H3LP ] Remvoe Player Connect Message
Reply With Quote #8

Quote:
Originally Posted by SpannerSpammer View Post
Darthman, that code will not work for TFC since it
sends a localized string for the connect message.

This has been discussed before, see this thread:
https://forums.alliedmods.net/showthread.php?t=282768
I see, that explains y it works on HL/GC but not on TFC, I guess.
DarthMan 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 22:49.


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