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

Anyway to turn this off?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AceNetworks
Member
Join Date: Aug 2017
Old 10-05-2018 , 15:29   Anyway to turn this off?
Reply With Quote #1

Hey is there a way to disable thiss


thanks anyways

Last edited by AceNetworks; 04-03-2022 at 19:20.
AceNetworks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 10-05-2018 , 15:37   Re: Anyway to turn this off?
Reply With Quote #2

What is "this"? Which part do you want to disable? Are you asking if you make the entire thing disappear?
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 10-05-2018 at 15:38.
ghostofmybrain is offline
AceNetworks
Member
Join Date: Aug 2017
Old 10-05-2018 , 15:53   Re: Anyway to turn this off?
Reply With Quote #3

Yes the entire thing
AceNetworks is offline
AceNetworks
Member
Join Date: Aug 2017
Old 10-05-2018 , 18:15   Re: Anyway to turn this off?
Reply With Quote #4

and also how i disable join/leave messages?


Code:
new String:g_sCMD[][] = {"coverme", "takepoint", "holdpos", "regroup", "followme", "takingfire", "go", "fallback", "sticktog", "getinpos", "stormfront", "report", "roger", "enemyspot", "needbackup", "sectorclear", "inposition", "reportingin", "getout", "negative","enemydown"};

public OnPluginStart()
{
	HookEvent("player_team", OnPlayerTeam, EventHookMode_Pre);
	HookEvent("player_disconnect", OnPlayerDisconnect, EventHookMode_Pre);
	HookEvent("player_connect", OnPlayerConnect, EventHookMode_Pre);
}

public OnConfigsExecuted()
{
	ServerCommand("sv_ignoregrenaderadio 1");
}


public Action:OnPlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
	return (Plugin_Handled);
}

public Action:OnPlayerConnect(Handle:event, const String:name[], bool:dontBroadcast)
{
	return (Plugin_Handled);
}

public Action:OnPlayerDisconnect(Handle:event, const String:name[], bool:dontBroadcast)
{
	return (Plugin_Handled);
}
i tryed this but it isnt work.... got it from a post
AceNetworks is offline
cra88y
AlliedModders Donor
Join Date: Dec 2016
Old 10-05-2018 , 19:35   Re: Anyway to turn this off?
Reply With Quote #5

I made this for disconnect messages, just copy the same format for the other messages

Code:
public void OnPluginStart()
{
	HookEvent("player_disconnect", Event_Disconnect, EventHookMode_Pre);
}

public Action Event_Disconnect(Event event, char[] name, bool dontBroadcast)
{
    SetEventBroadcast(event, true);
    return Plugin_Continue;
}
cra88y is offline
AceNetworks
Member
Join Date: Aug 2017
Old 10-05-2018 , 19:58   Re: Anyway to turn this off?
Reply With Quote #6

so i used the code from above and added connect

Last edited by AceNetworks; 05-02-2021 at 22:37.
AceNetworks is offline
cra88y
AlliedModders Donor
Join Date: Dec 2016
Old 10-05-2018 , 22:15   Re: Anyway to turn this off?
Reply With Quote #7

I don't believe you're allowed to post an smx without a source, so for anyone else interested here's a block for join / leave messages.
Attached Files
File Type: sp Get Plugin or Get Source (noconnenctmsg.sp - 134 views - 599 Bytes)

Last edited by cra88y; 10-05-2018 at 22:18.
cra88y 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 12:23.


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