Raised This Month: $ Target: $400
 0% 

help with const... trying to limit a cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-24-2009 , 15:01   help with const... trying to limit a cvar
Reply With Quote #1

Hello I looked at exolents jumpstats plugin and i found something i could use to block/limit interp just wondering

PHP Code:
new const g_client_cvar_names[][] =
{
    
"developer",
    
"fps_max",
    
"cl_forwardspeed",
    
"cl_sidespeed",
    
"cl_backspeed"
};

new const 
g_client_cvar_values[sizeof(g_client_cvar_names)] =
{
    
0,
    
101,
    
400,
    
400,
    
400 
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-24-2009 , 15:22   Re: help with const... trying to limit a cvar
Reply With Quote #2

So . . . What's the question?
__________________
fysiks is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-24-2009 , 15:53   Re: help with const... trying to limit a cvar
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
So . . . What's the question?
Guessing from the topic name, he's trying to limit them somehow to cvars? and wants help with that, aye.
Edit: The topic says a cvar.
He's trying to limit those to a one cvar.
That's the truth.
SnoW is offline
Send a message via MSN to SnoW
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-24-2009 , 16:46   Re: help with const... trying to limit a cvar
Reply With Quote #4

Yes thnx for explaning snow... Cause my friends and i play usptactics so I needed to make them a plugin that limits the value of a cvar
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns is offline
31m0_owns
Member
Join Date: May 2008
Location: SLH, New Jersey-- U.S.A
Old 05-24-2009 , 17:06   Re: help with const... trying to limit a cvar
Reply With Quote #5

In better terms of what i need to do... its just something basic i came up with but i get errors when i compile please help

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_cvar_float("ex_interp"Float:0.01),
    
set_cvar_num("ex_interp""0.01"),
    
set_cvar_string("ex_interp""0,01"
__________________
Project(s):
Prop-Hunt: 5%
Killcam: NEVER GOING TO HAPPEN!!!
31m0_owns is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-24-2009 , 20:22   Re: help with const... trying to limit a cvar
Reply With Quote #6

set_cvar_float( "ex_interp" , 0.01 );

or

set_cvar_string( "ex_interp" , "0.01" );
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 01:27.


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