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

Client-sided cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 10-10-2018 , 14:30   Client-sided cvar
Reply With Quote #1

Can you help me with creating client sided cvar, value from it should be available from another plugin.
I mean value of this cvar can be different for each steamid

For example, default cvar value for each player is 1. If player use sm_whelp, value for his own cvar changes to 0. If use again - change to 1. Server must remember value of this cvar for each steamid.

Or post here some articles that would be useful for me. Thanks.
impossible_cc is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-10-2018 , 14:54   Re: Client-sided cvar
Reply With Quote #2

not sure what you mean by "creating client sided cvar".
But I think what you need/search for is sql to store client values and natives to share these values with other plugins.
__________________
coding & free software
shanapu is offline
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 10-10-2018 , 15:43   Re: Client-sided cvar
Reply With Quote #3

Maybe it would be easier to do it with .inc file.
Couple of plugins on server can display some information, which helps to novice. All I need is create sm_disablehelp and sm_enablehelp command which must work for all plugins. But I'm not sure how to remember this for all plugins.

Thx for answer. I shall read about SQL
impossible_cc is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-10-2018 , 16:56   Re: Client-sided cvar
Reply With Quote #4

You can use clientprefs to save values per-client.
Fyren 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 21:47.


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