Raised This Month: $ Target: $400
 0% 

sv_maxspeed and set_user_maxspeed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-27-2007 , 06:04   Re: sv_maxspeed and set_user_maxspeed
Reply With Quote #2

You can get client cvar like this :

Code:
new Float:g_speed[33][3] public client_connect(id) {     query_client_cvar(id , "cl_forwardspeed" , "cvar_result1");     query_client_cvar(id , "cl_backspeed" , "cvar_result2");     query_client_cvar(id , "cl_sidespeed" , "cvar_result3"); } public cvar_result1(id, const cvar[] , const value[]) {     g_speed[id][0] = floatstr(value); } public cvar_result2(id, const cvar[] , const value[]) {     g_speed[id][1] = floatstr(value); } public cvar_result3(id, const cvar[] , const value[]) {     g_speed[id][2] = floatstr(value); }


I guess you shoud do it with only 1 cvar_result function but i don't want to search how to do it ;)
So you can now store client's values, and set them back when you want.

I think that you can't set client_maxspeed (set_user_maxspeed) higher than sv_maxspeed but i may be wrong.Please give feed back about this.
ConnorMcLeod is offline
 



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 16:17.


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