AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Change cvar on clients (https://forums.alliedmods.net/showthread.php?t=313530)

ncux0Zz 01-13-2019 01:20

Change cvar on clients
 
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?

Mordekay 01-13-2019 05:05

Re: Change cvar on clients
 
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.

thEsp 01-14-2019 07:40

Re: Change cvar on clients
 
Quote:

Originally Posted by Mordekay (Post 2634428)
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.
-_-

DJEarthQuake 01-21-2019 14:40

Re: Change cvar on clients
 
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 (Post 2634407)
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)


All times are GMT -4. The time now is 23:44.

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