AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Anti smoke(transparent) plugin (https://forums.alliedmods.net/showthread.php?t=280259)

Ant1Lamer 03-12-2016 08:31

Anti smoke(transparent) plugin
 
Need for 16 bit players or player using model for transparent smoke or if user missing mdl file than plugin kick with reason or ban for time with cvar.

Artifact 03-12-2016 09:20

Re: Anti smoke(transparent) plugin
 
For 32/16 Bit gameplay
https://forums.alliedmods.net/showpo...09&postcount=2

And if want to play without mdl HL.exe will be terminated. You mean if player delete gas_puff1.spr?

Ant1Lamer 03-12-2016 09:40

Re: Anti smoke(transparent) plugin
 
yes if player deleted or using model for transparent smoke

Ant1Lamer 04-20-2016 09:08

Re: Anti smoke(transparent) plugin
 
up ? Only this find https://forums.alliedmods.net/showthread.php?p=970945 but i dont need this players do not like it

Ant1Lamer 05-06-2016 08:41

Re: Anti smoke(transparent) plugin
 
up

Ant1Lamer 06-03-2016 09:59

Re: Anti smoke(transparent) plugin
 
anyone

Apb hq 06-03-2016 10:03

Re: Anti smoke(transparent) plugin
 
Try this for transparent smoke
PHP Code:

#include <amxmodx>

#pragma semicolon 1
#pragma ctrlchar '\'

new PLUGIN[]  = "No-Smoke Kicker";
new 
AUTHOR[]  = "KliPPy";
new 
VERSION[] = "v1.0.0";

new const 
SMOKE_SPRITE[] = "sprites/gas_puff_01.spr";
new const 
KICK_MESSAGE[] = "Different "sprites/gas_puff_01.spr". Suspected of No-Smoke.";
new const 
LOG_FILE[] = "no-smoke.log";


public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
}

public 
plugin_precache()
{
    
precache_model(SMOKE_SPRITE);
    
force_unmodified(force_exactfile, {000}, {000}, SMOKE_SPRITE);
}

public 
inconsistent_file(id, const filename[], reason[64])
{
    if(
equali(filenameSMOKE_SPRITE)) // equal() should be good enough, but whatever
    
{
        new 
szAuthId[35], szName[32], szIp[22];
        
get_user_authid(idszAuthIdcharsmax(szAuthId));
        
get_user_name(idszNamecharsmax(szName));
        
get_user_ip(idszIpcharsmax(szIp));
        
log_to_file(LOG_FILE"%s<%s><%s> was suspected of No-Smoke."szNameszAuthIdszIp);
        
copy(reasoncharsmax(reason), KICK_MESSAGE);
    }



Ant1Lamer 06-03-2016 12:43

Re: Anti smoke(transparent) plugin
 
no not work nothing work on steam ? i'm with steam. Plugin giving error i fixed but not work

PHP Code:

#include <amxmodx>

#pragma semicolon 1
#pragma ctrlchar '\'

new PLUGIN[]  = "No-Smoke Kicker";
new 
AUTHOR[]  = "KliPPy";
new 
VERSION[] = "v1.0.0";

new const 
SMOKE_SPRITE[] = "sprites/gas_puff_01.spr";
new const 
KICK_MESSAGE[] = "Different sprites/gas_puff_01.spr, Suspected of No-Smoke.";
new const 
LOG_FILE[] = "no-smoke.log";


public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
}

public 
plugin_precache()
{
    
precache_model(SMOKE_SPRITE);
    
force_unmodified(force_exactfile, {000}, {000}, SMOKE_SPRITE);
}

public 
inconsistent_file(id, const filename[], reason[64])
{
    if(
equali(filenameSMOKE_SPRITE)) // equal() should be good enough, but whatever
    
{
        new 
szAuthId[35], szName[32], szIp[22];
        
get_user_authid(idszAuthIdcharsmax(szAuthId));
        
get_user_name(idszNamecharsmax(szName));
        
get_user_ip(idszIpcharsmax(szIp));
        
log_to_file(LOG_FILE"%s<%s><%s> was suspected of No-Smoke."szNameszAuthIdszIp);
        
copy(reasoncharsmax(reason), KICK_MESSAGE);
    }



Ant1Lamer 06-18-2016 08:52

Re: Anti smoke(transparent) plugin
 
up

siriusmd99 06-18-2016 09:03

Re: Anti smoke(transparent) plugin
 
Try to kick user by yourself.

add after copy function this:

server_cmd("kick #%d ^"%s^"", get_user_userid(id), KICK_MESSAGE)


All times are GMT -4. The time now is 01:35.

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