AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Anyway to turn this off? (https://forums.alliedmods.net/showthread.php?t=311153)

AceNetworks 10-05-2018 15:29

Anyway to turn this off?
 
Hey is there a way to disable thiss


thanks anyways

ghostofmybrain 10-05-2018 15:37

Re: Anyway to turn this off?
 
What is "this"? Which part do you want to disable? Are you asking if you make the entire thing disappear?

AceNetworks 10-05-2018 15:53

Re: Anyway to turn this off?
 
Yes the entire thing

AceNetworks 10-05-2018 18:15

Re: Anyway to turn this off?
 
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

cra88y 10-05-2018 19:35

Re: Anyway to turn this off?
 
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;
}


AceNetworks 10-05-2018 19:58

Re: Anyway to turn this off?
 
so i used the code from above and added connect

cra88y 10-05-2018 22:15

Re: Anyway to turn this off?
 
1 Attachment(s)
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.


All times are GMT -4. The time now is 23:04.

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