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

Weird messages in chat (CS:GO)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 03-10-2013 , 16:17   Weird messages in chat (CS:GO)
Reply With Quote #1

Hmm does anyone know what's with this spam in chat?

ChangeclientTeamEX Game running CS_SwitchTeam
ChangeClientTeamEx Player is dead?


Not sure what this addon is from, if so, is it possible to stop it?

Code:
[SM] Listing 32 plugins:
01 "Admin File Reader" (1.5.0-dev+3792) by AlliedModders LLC
02 "Admin Help" (1.5.0-dev+3792) by AlliedModders LLC
03 "Admin Menu" (1.5.0-dev+3792) by AlliedModders LLC
04 "Advanced admin commands" (0.18) by 3sigma | TnTSCS
05 "Advertisements" (0.6) by Tsunami
06 "Anti-Flood" (1.5.0-dev+3792) by AlliedModders LLC
07 "Basic Chat" (1.5.0-dev+3792) by AlliedModders LLC
08 "Basic Comm Control" (1.5.0-dev+3792) by AlliedModders LLC
09 "Basic Commands" (1.5.0-dev+3792) by AlliedModders LLC
10 "Basic Info Triggers" (1.5.0-dev+3792) by AlliedModders LLC
11 "Basic Votes" (1.5.0-dev+3792) by AlliedModders LLC
12 "Client Preferences" (1.5.0-dev+3792) by AlliedModders LLC
13 "Fun Commands" (1.5.0-dev+3792) by AlliedModders LLC
14 "Fun Votes" (1.5.0-dev+3792) by AlliedModders LLC
15 "gameME Plugin" (4.3) by TTS Oetzel & Goerz GmbH
16 "GameVoting" (1.1) by Neatek
17 "Nextmap" (1.5.0-dev+3792) by AlliedModders LLC
18 "Player Commands" (1.5.0-dev+3792) by AlliedModders LLC
19 "Reserved Slots" (1.5.0-dev+3792) by AlliedModders LLC
20 "SourceMod Anti-Cheat" (0.8.3.3) by SMAC Development Team
21 "SMAC Aimbot Detector" (0.8.2.9) by SMAC Development Team
22 "SMAC AutoTrigger Detector" (0.8.2.9) by SMAC Development Team
23 "SMAC Client Protection" (0.8.2.9) by SMAC Development Team
24 "SMAC Command Monitor" (0.8.2.9) by SMAC Development Team
25 "SMAC ConVar Checker" (0.8.2.9) by SMAC Development Team
26 "SMAC Eye Angle Test" (0.8.3.3) by SMAC Development Team
27 "SMAC Rcon Locker" (0.8.2.9) by SMAC Development Team
28 "SMAC Anti-Speedhack" (0.8.3.3) by SMAC Development Team
29 "Sound Commands" (1.5.0-dev+3792) by AlliedModders LLC
30 "SourceBans" (1.4.10) by SourceBans Development Team
31 "spawntools7" (0.9) by meng
32 "Weapon Restrict" (3.1.3) by Dr!fter
__________________
The 47 Ronin Gaming - http://www.47r-squad.com


IcEWoLF is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 03-10-2013 , 21:21   Re: Weird messages in chat (CS:GO)
Reply With Quote #2

I'm assuming that you are using this: https://forums.alliedmods.net/showpo...&postcount=942
Look at line 383:
PHP Code:
ChangeClientTeamEx(clientteam)
{
    if ((
game != GAME_CSTRIKE && game != GAME_CSGO) || team TEAM1)
    {
        
PrintToChatAll("ChangeClientTeamEx Game != CSS or CSGO");
        
ChangeClientTeam(clientteam);
        return;
    }

    new 
oldTeam GetClientTeam(client);
    
PrintToChatAll("ChangeClientTeamEx Game running CS_SwitchTeam");
    
CS_SwitchTeam(clientteam);
    if (!
IsPlayerAlive(client))
    {
        
PrintToChatAll("ChangeClientTeamEx Player is dead?");
        return;
    }
    
    if (
game == GAME_CSGO)
    {
        
PrintToChatAll("ChangeClientTeamEx running CS_RespawnPlayer");
        
CS_RespawnPlayer(client);
        return;
    }

    
decl String:model[PLATFORM_MAX_PATH], String:newmodel[PLATFORM_MAX_PATH];
    
GetClientModel(clientmodelsizeof(model));
    
newmodel model;

    if (
oldTeam == TEAM1)
    {
        new 
c4 GetPlayerWeaponSlot(clientCS_SLOT_C4);
        if (
c4 != -1DropWeapon(clientc4);
        
        if (
game == GAME_CSTRIKE)
        {
            if (
StrContains(modelt_models[0], false)) newmodel ct_models[0];
            if (
StrContains(modelt_models[1], false)) newmodel ct_models[1];
            if (
StrContains(modelt_models[2], false)) newmodel ct_models[2];
            if (
StrContains(modelt_models[3], false)) newmodel ct_models[3];
        }
    } else
    if (
oldTeam == TEAM2)
    {
        
SetEntProp(clientProp_Send"m_bHasDefuser"01);
        
        if (
game == GAME_CSTRIKE)
        {
            if (
StrContains(modelct_models[0], false)) newmodel t_models[0];
            if (
StrContains(modelct_models[1], false)) newmodel t_models[1];
            if (
StrContains(modelct_models[2], false)) newmodel t_models[2];
            if (
StrContains(modelct_models[3], false)) newmodel t_models[3];
        }
    }

    
//if (hSetModel != INVALID_HANDLE) SDKCall(hSetModel, client, newmodel);

Comment out each instance of PrintToChatAll() that you see, and you should be fine.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 03-10-2013 , 21:38   Re: Weird messages in chat (CS:GO)
Reply With Quote #3

Ah thanks!

So I suppose I do this:

//PrintToChatAll("ChangeClientTeamEx Game != CSS or CSGO");

correct?
__________________
The 47 Ronin Gaming - http://www.47r-squad.com



Last edited by IcEWoLF; 03-10-2013 at 21:39.
IcEWoLF is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 03-10-2013 , 21:53   Re: Weird messages in chat (CS:GO)
Reply With Quote #4

Yes. Do the same thing for the other instances of PrintToChatAll and you should be fine.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 03-11-2013 , 01:16   Re: Weird messages in chat (CS:GO)
Reply With Quote #5

Okay awesome, I think I got it:

PHP Code:
ChangeClientTeamEx(clientteam)
{
    if ((
game != GAME_CSTRIKE && game != GAME_CSGO) || team TEAM1)
    {
//        PrintToChatAll("ChangeClientTeamEx Game != CSS or CSGO");
        
ChangeClientTeam(clientteam);
        return;
    }

    new 
oldTeam GetClientTeam(client);
//    PrintToChatAll("ChangeClientTeamEx Game running CS_SwitchTeam");
    
CS_SwitchTeam(clientteam);
    if (!
IsPlayerAlive(client))
    {
//        PrintToChatAll("ChangeClientTeamEx Player is dead?");
        
return;
    }
    
    if (
game == GAME_CSGO)
    {
//        PrintToChatAll("ChangeClientTeamEx running CS_RespawnPlayer");
        
CS_RespawnPlayer(client);
        return;
    }

    
decl String:model[PLATFORM_MAX_PATH], String:newmodel[PLATFORM_MAX_PATH];
    
GetClientModel(clientmodelsizeof(model));
    
newmodel model;

    if (
oldTeam == TEAM1)
    {
        new 
c4 GetPlayerWeaponSlot(clientCS_SLOT_C4);
        if (
c4 != -1DropWeapon(clientc4);
        
        if (
game == GAME_CSTRIKE)
        {
            if (
StrContains(modelt_models[0], false)) newmodel ct_models[0];
            if (
StrContains(modelt_models[1], false)) newmodel ct_models[1];
            if (
StrContains(modelt_models[2], false)) newmodel ct_models[2];
            if (
StrContains(modelt_models[3], false)) newmodel ct_models[3];
        }
    } else
    if (
oldTeam == TEAM2)
    {
        
SetEntProp(clientProp_Send"m_bHasDefuser"01);
        
        if (
game == GAME_CSTRIKE)
        {
            if (
StrContains(modelct_models[0], false)) newmodel t_models[0];
            if (
StrContains(modelct_models[1], false)) newmodel t_models[1];
            if (
StrContains(modelct_models[2], false)) newmodel t_models[2];
            if (
StrContains(modelct_models[3], false)) newmodel t_models[3];
        }
    }

    
//if (hSetModel != INVALID_HANDLE) SDKCall(hSetModel, client, newmodel);

__________________
The 47 Ronin Gaming - http://www.47r-squad.com



Last edited by IcEWoLF; 03-11-2013 at 01:17.
IcEWoLF is offline
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 03-22-2013 , 18:37   Re: Weird messages in chat (CS:GO)
Reply With Quote #6

The above was fixed:
https://forums.alliedmods.net/showpo...&postcount=942

Thanks CenT
__________________
The 47 Ronin Gaming - http://www.47r-squad.com


IcEWoLF 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 16:45.


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