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

Standalone Cvar Checker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gaissi
Senior Member
Join Date: Sep 2009
Old 07-07-2010 , 03:08   Standalone Cvar Checker
Reply With Quote #1

Hey,

I search for a standalone SM Plugin which check if the player have cl_minmodels 0 or not...
If the player have cl_minmodels 1 he will get kicked or get moved to the spectator...

This function exists at several hide'n'seek Plugins but it don't exist as a standalone plugin....

http://forums.alliedmods.net/showthread.php?t=124979

http://forums.alliedmods.net/showthread.php?p=615624

I hope someone can help me...

greetings gaissi
gaissi is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-07-2010 , 08:24   Re: Standalone Cvar Checker
Reply With Quote #2

if you have kac open beta, then you can add this in your server.cfg
Quote:
kac_addcvar cl_minmodels equal kick 0
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
bobdole
SourceMod Donor
Join Date: May 2008
Location: Houston,Texas
Old 07-07-2010 , 13:20   Re: Standalone Cvar Checker
Reply With Quote #3

what game is this for,

because cl_minmodels was removed in CSS as of the last update
bobdole is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-07-2010 , 14:17   Re: Standalone Cvar Checker
Reply With Quote #4

Quote:
] cl_minmodels
"cl_minmodels" = "0"
client
- Uses one player model for each team.
] version
Protocol version 15
Exe version 1.0.0.41 (cstrike)
Exe build: 12:27:59 Jul 6 2010 (4259) (240)
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
bobdole
SourceMod Donor
Join Date: May 2008
Location: Houston,Texas
Old 07-07-2010 , 14:29   Re: Standalone Cvar Checker
Reply With Quote #5

http://store.steampowered.com/news/4033/

Quote:
Removed functionality of cl_minmodels.
bobdole is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-07-2010 , 14:52   Re: Standalone Cvar Checker
Reply With Quote #6

i wonder why they did not remove cvar
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-07-2010 , 17:13   Re: Standalone Cvar Checker
Reply With Quote #7

cl_minmodels isn't implemented anymore? That's great, but it's strange that it's reported here a few days ago.

Anyways, this is the extracted part to block the convar.

PHP Code:
#include <sourcemod>

new Handle:g_checkPlayers[MAXPLAYERS+1] = {INVALID_HANDLE,...};

public 
OnClientPutInServer(client)
{
    if(!
IsFakeClient(client))
        
g_checkPlayers[client] = CreateTimer(1.0CheckVarclientTIMER_REPEAT);
}

public 
OnClientDisconnect(client)
{
    if(
g_checkPlayers[client] != INVALID_HANDLE)
    {
        
KillTimer(g_checkPlayers[client]);
        
g_checkPlayers[client] = INVALID_HANDLE;
    }
}

public 
Action:CheckVar(Handle:timerany:client)
{    
    if (!
IsClientInGame(client))
        return 
Plugin_Handled;
    
    
QueryClientConVar(client"cl_minmodels"ConVarQueryFinished:ClientConVarclient);
    return 
Plugin_Continue;
}

public 
ClientConVar(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[])
{
    if(!
StrEqual(cvarValue"0"))
    {
        
KickClient(client"cl_minmodels is blocked.");
        
PrintToChatAll("%N has been kicked for cl_minmodels violation."client);
    }

__________________
Peace-Maker is offline
bobdole
SourceMod Donor
Join Date: May 2008
Location: Houston,Texas
Old 07-07-2010 , 20:29   Re: Standalone Cvar Checker
Reply With Quote #8

that post was made the second the update went into effect the sixth

there's alot of people on the steam forums raging about the removal of it
bobdole is offline
gaissi
Senior Member
Join Date: Sep 2009
Old 07-13-2010 , 17:48   Re: Standalone Cvar Checker
Reply With Quote #9

Quote:
Originally Posted by Peace-Maker View Post
cl_minmodels isn't implemented anymore? That's great, but it's strange that it's reported here a few days ago.

Anyways, this is the extracted part to block the convar.

PHP Code:
#include <sourcemod>

new Handle:g_checkPlayers[MAXPLAYERS+1] = {INVALID_HANDLE,...};

public 
OnClientPutInServer(client)
{
    if(!
IsFakeClient(client))
        
g_checkPlayers[client] = CreateTimer(1.0CheckVarclientTIMER_REPEAT);
}

public 
OnClientDisconnect(client)
{
    if(
g_checkPlayers[client] != INVALID_HANDLE)
    {
        
KillTimer(g_checkPlayers[client]);
        
g_checkPlayers[client] = INVALID_HANDLE;
    }
}

public 
Action:CheckVar(Handle:timerany:client)
{    
    if (!
IsClientInGame(client))
        return 
Plugin_Handled;
    
    
QueryClientConVar(client"cl_minmodels"ConVarQueryFinished:ClientConVarclient);
    return 
Plugin_Continue;
}

public 
ClientConVar(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[])
{
    if(!
StrEqual(cvarValue"0"))
    {
        
KickClient(client"cl_minmodels is blocked.");
        
PrintToChatAll("%N has been kicked for cl_minmodels violation."client);
    }

Thank you for your help!
gaissi is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-24-2010 , 06:07   Re: Standalone Cvar Checker
Reply With Quote #10

the plugins are unnecessary, because of
Code:
"sv_allowminmodels" = "0" ( def. "1" )
 game replicated
 - Allow or disallow the use of cl_minmodels on this server.
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone 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 03:37.


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