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

Solved L4D / Split tank glitch


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 07-30-2020 , 03:46   Re: L4D / Split tank glitch
Reply With Quote #11

Quote:
Originally Posted by finishlast View Post
I wait for the updated version and try that again, if you got it working.

Thanks a lot!
try this,
"ban tank player who loses 100% control and leaves the game"
PHP Code:
#pragma semicolon 1
#pragma newdecls required //強制1.7以後的新語法

#include <sourcemod>
#include <sdktools>

ConVar g_hCvarAllowg_hCvarBanTime;
static 
int ZOMBIECLASS_TANK 5;

public 
Plugin myinfo =
{
    
name "ban tank player glitch",
    
author "Harry Potter",
    
description "ban player who uses L4D / Split tank glitch",
    
version "1.0",
    
url "https://forums.alliedmods.net/showthread.php?t=326023"
};

public 
APLRes AskPluginLoad2(Handle myselfbool latechar[] errorint err_max
{
    
EngineVersion test GetEngineVersion();
    
    if(
test != Engine_Left4Dead)
    {
        
strcopy(errorerr_max"Plugin only supports Left 4 Dead 1.");
        return 
APLRes_SilentFailure;
    }
    return 
APLRes_Success
}

public 
void OnPluginStart()
{
    
g_hCvarAllow =    CreateConVar("sm_ban_tankplayer_allow",    "1""0=Plugin off, 1=Plugin on."FCVAR_NOTIFYtrue0.0true1.0);
    
g_hCvarBanTime =    CreateConVar("sm_ban_tankplayer_ban_time",    "5""Ban how many mins."FCVAR_NOTIFYtrue0.0true1.0);

    
AutoExecConfig(true"ban_twotank_glitch_player");
}

public 
void OnClientDisconnect(int client)
{
    if(
g_hCvarAllow.BoolValue)
    {
        if(
client && IsClientInGame(client) && !IsFakeClient(client) && GetClientTeam(client) == && IsPlayerAlive(client) && IsPlayerTank(client))
        {
            
int frus GetFrustration(client);
            if(
frus == 100)
            {
                
PrintToChatAll("%N tries to use two tank glitch and leaves the game as alive tank player.",client);
                
BanClient(clientg_hCvarBanTime.IntValueBANFLAG_AUTHID"use two tank glitch""Nice Try! Dumbass!");
            }
        }
    }
}

bool IsPlayerTank (int client)
{
    return (
GetEntProp(clientProp_Send"m_zombieClass") == ZOMBIECLASS_TANK);
}

int GetFrustration(int tank_index)
{
    return 
GetEntProp(tank_indexProp_Send"m_frustration");

__________________

Last edited by HarryPotter; 07-30-2020 at 03:47.
HarryPotter is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 07-30-2020 , 17:09   Re: L4D / Split tank glitch
Reply With Quote #12

Hi there,

the new version banned me as expected and I was unable to use the glitch.

So I think this is a fix for my request!

Thanks a lot for your work!

Cheers!
__________________
finishlast 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 21:59.


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