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

Anti smoke(transparent) plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 03-12-2016 , 08:31   Anti smoke(transparent) plugin
Reply With Quote #1

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.
Ant1Lamer is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 03-12-2016 , 09:20   Re: Anti smoke(transparent) plugin
Reply With Quote #2

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?
__________________
Artifact is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 03-12-2016 , 09:40   Re: Anti smoke(transparent) plugin
Reply With Quote #3

yes if player deleted or using model for transparent smoke
Ant1Lamer is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 04-20-2016 , 09:08   Re: Anti smoke(transparent) plugin
Reply With Quote #4

up ? Only this find https://forums.alliedmods.net/showthread.php?p=970945 but i dont need this players do not like it
Ant1Lamer is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 05-06-2016 , 08:41   Re: Anti smoke(transparent) plugin
Reply With Quote #5

up
Ant1Lamer is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 06-03-2016 , 09:59   Re: Anti smoke(transparent) plugin
Reply With Quote #6

anyone
Ant1Lamer is offline
Apb hq
Senior Member
Join Date: Apr 2014
Old 06-03-2016 , 10:03   Re: Anti smoke(transparent) plugin
Reply With Quote #7

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);
    }


Last edited by Apb hq; 06-03-2016 at 12:19.
Apb hq is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 06-03-2016 , 12:43   Re: Anti smoke(transparent) plugin
Reply With Quote #8

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 is offline
Ant1Lamer
Senior Member
Join Date: Jul 2009
Old 06-18-2016 , 08:52   Re: Anti smoke(transparent) plugin
Reply With Quote #9

up
Ant1Lamer is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-18-2016 , 09:03   Re: Anti smoke(transparent) plugin
Reply With Quote #10

Try to kick user by yourself.

add after copy function this:

server_cmd("kick #%d ^"%s^"", get_user_userid(id), KICK_MESSAGE)
siriusmd99 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 10:21.


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