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

custom cvar?


Post New Thread Reply   
 
Thread Tools Display Modes
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-29-2020 , 03:48   Re: custom cvar?
Reply With Quote #11

Sorry, I just saw what I did, I didn't see his reply on post #6
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
condoriano90
Member
Join Date: May 2020
Old 06-30-2020 , 07:12   Re: custom cvar?
Reply With Quote #12

This smells like nonsteam to me but I'll give him the benefit of the doubt. As for slowhacking, I'd argue that this isn't really changing client settings, but more like cookies on websites. But if this is against the rules, please delete this post.

As for the practicality of it, I advice you not to use this method because it is unreliable and easily edited by the client.

But, if you still want it, here the code:

PHP Code:
client_cmd(id"setinfo _blah 1"

Last edited by condoriano90; 06-30-2020 at 07:14.
condoriano90 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-30-2020 , 07:44   Re: custom cvar?
Reply With Quote #13

Quote:
Originally Posted by condoriano90 View Post
This smells like nonsteam to me but I'll give him the benefit of the doubt. As for slowhacking, I'd argue that this isn't really changing client settings, but more like cookies on websites. But if this is against the rules, please delete this post.

As for the practicality of it, I advice you not to use this method because it is unreliable and easily edited by the client.

But, if you still want it, here the code:

PHP Code:
client_cmd(id"setinfo _blah 1"
"set_user_info" exists. There's no reason to use "client_cmd" here. Also, this is not going to help because users can either have read-only configuration which cannot be modified by the server or they can simply remove the modified value themselves.

In short, no Steam = no support.
__________________

Last edited by OciXCrom; 06-30-2020 at 07:46.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-30-2020 , 08:44   Re: custom cvar?
Reply With Quote #14

Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
__________________








CrazY. is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-30-2020 , 11:12   Re: custom cvar?
Reply With Quote #15

Quote:
Originally Posted by OciXCrom View Post
"set_user_info" exists. There's no reason to use "client_cmd" here. Also, this is not going to help because users can either have read-only configuration which cannot be modified by the server or they can simply remove the modified value themselves.

In short, no Steam = no support.
I thought of that too, but it didn't work (probably because of the reason you already stated). But if you need this only on one server, you can always use nVault to store is_good_guy and read it on client_authorized.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-30-2020 , 23:26   Re: custom cvar?
Reply With Quote #16

I don't even think that setinfo writes (or attempts to write) anything to any file so as soon as you close the game, that info is gone.
__________________
fysiks is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 07-01-2020 , 01:53   Re: custom cvar?
Reply With Quote #17

It doesn't work like that, but it just can't be writen by client_cmd, if you try that command in-game it will stay there even if you relog, try it for yourself.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-01-2020 , 04:42   Re: custom cvar?
Reply With Quote #18

The question answers it self, you already said the answer in post #1 what else do you need?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 08:02.


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