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

Solved [CSGO] Enable sv_cheats 1 but only for certain players?


Post New Thread Reply   
 
Thread Tools Display Modes
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 05-11-2023 , 18:15   Re: [CSGO] Enable sv_cheats 1 but only for certain players?
Reply With Quote #11

The SendConVarValue function will only fake to the client to make it think sv_cheats is set to 1. It's not actually changing the value on the server. This is equalto using a memory patch hack to enable sv_cheats client side. If you have it enabled client side you can run client commands for wallhacks and such but you can't execute commands like noclip or ent_create or give as they are all server side validated. The server will know sv_cheats isn't enabled and will not execute the commands. If you wanted to allow the client to execute these server verified cheat commands then you would want to hook the clientcommand and enable sv_Cheats for that single game frame and disable it after or remove the cheat flags from the convar\concommand to allow it to execute when sv_cheats is 0.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.

Last edited by backwards; 05-11-2023 at 18:16.
backwards is offline
Austin
Senior Member
Join Date: Oct 2005
Old 05-12-2023 , 14:46   Re: [CSGO] Enable sv_cheats 1 but only for certain players?
Reply With Quote #12

Quote:
Originally Posted by Austin View Post
I think the problem is I don't understand what this
SendConVarValue() is supposed to do.
Quote:
Originally Posted by backwards View Post
The SendConVarValue function will only fake to the client to make it think sv_cheats is set...
What an excellent accurate explanation!
It is nice to have people around that know source "forwards and backwards"

Thanks backwards!
Austin 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 19:10.


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