Raised This Month: $138 Target: $400
 34% 

disable join team and disconnect message in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex2001
Member
Join Date: May 2019
Old 08-17-2019 , 06:47   disable join team and disconnect message in chat
Reply With Quote #1

hi, i want to disable.. title.. but i dont find nothing in translation.. where i can find this message
alex2001 is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 08-17-2019 , 08:46   Re: disable join team and disconnect message in chat
Reply With Quote #2

PHP Code:
public void OnPluginStart()
{
    
HookEventEx("player_disconnect"OnPlrDisconnectEventHookMode_Pre);
    
HookEventEx("player_connect"OnPlrConnectEventHookMode_Pre);
}

public 
void OnPlrConnect(Handle pEvent, const char[] eventNamebool bNoBCast)
{
    
SetEventBroadcast(pEventtrue);
}

public 
void OnPlrDisconnect(Handle pEvent, const char[] eventNamebool bNoBCast)
{
    
SetEventBroadcast(pEventtrue);

__________________
kratoss1812 is offline
Ilusion9
Senior Member
Join Date: Jun 2018
Location: Romania
Old 08-17-2019 , 13:45   Re: disable join team and disconnect message in chat
Reply With Quote #3

PHP Code:

public void OnPluginStart() 

    
HookEvent("player_team"Event_PlayerTeamEventHookMode_Pre); 


public 
void Event_PlayerTeam(Event event, const char[] namebool dontBroadcast

    
event.SetInt("silent"true);

__________________
Ilusion9 is offline
alex2001
Member
Join Date: May 2019
Old 08-17-2019 , 14:30   Re: disable join team and disconnect message in chat
Reply With Quote #4

thanks i solverd.

Quote:
public void OnPluginStart()
{
HookEvent("player_team", Event_PlayerTeam, EventHookMode_Pre);
}

public void Event_PlayerTeam(Event event, const char[] name, bool dontBroadcast)
{
event.SetInt("silent", true);
}
alex2001 is offline
Reply


Thread Tools
Display Modes

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 15:00.


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