Raised This Month: $32 Target: $400
 8% 

Change cvar on clients


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ncux0Zz
Zero Posts
Join Date: Jan 2019
Old 01-13-2019 , 01:20   Change cvar on clients
Reply With Quote #1

Hello, i know this is bad form.
I have only steam cw\mix server and everyone knows what were the rules at WCG.
Some of the cvars were banned:
cl_weather 0
mp_decals 0
max_shells 0
max_smokepuffs 0
fastsprites 1\2
fps_max higher 101

and ect.
I want change some cvars on client while logging in to the server.
But if the client changes the value back, it will be removed from the server with a warning.
Is it possible to make a range of valid values and specific values in the plugin? For example: greater than, less than, equal to, or to and from.
Sorry my English
Really do that?
Cand you help me?
ncux0Zz is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-13-2019 , 05:05   Re: Change cvar on clients
Reply With Quote #2

Changing clients settings without permission is slow-hacking. This is not supported here. Simply kick them with the reason of the wrong settings so they have to change them.
__________________

Mordekay is offline
thEsp
BANNED
Join Date: Aug 2017
Old 01-14-2019 , 07:40   Re: Change cvar on clients
Reply With Quote #3

Quote:
Originally Posted by Mordekay View Post
Changing clients settings without permission is slow-hacking. This is not supported here. Simply kick them with the reason of the wrong settings so they have to change them.
Yes you're right, you can literally download viruses and malwares into client's pc.
-_-
thEsp is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-21-2019 , 14:40   Re: Change cvar on clients
Reply With Quote #4

There's got to be a happy medium out there. URL is in the quote. Ranges and lists seem to be available to test out.

Quote:
Originally Posted by ncux0Zz View Post
Is it possible to make a range of valid values and specific values in the plugin?



Code:
stock GetCvarOption(CvarOption[],CvarIndex)		// Converts the String text into a Int in the g_CvarRule
{
	if(CvarOption[0] == '=')
		g_CvarRule[CvarIndex] = CVAR_EQUALS
	else if(CvarOption[0] == '>')
		g_CvarRule[CvarIndex] = CVAR_BIGER
	else if(CvarOption[0] == '<')
		g_CvarRule[CvarIndex] = CVAR_SMALLER
	else if(CvarOption[0] == '!')
		g_CvarRule[CvarIndex] = CVAR_OTHERTHEN
	else return -1
	
	return 1
}


https://forums.alliedmods.net/showpo...76&postcount=1 It features NO client cmds to forcibly change player rates and no constant server polling to check for rate changes. (1 shot)

https://forums.alliedmods.net/showpo...20&postcount=6 Rechecks so if user tries to change it back. (constant polling)
__________________
DJEarthQuake 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 04:34.


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