Raised This Month: $ Target: $400
 0% 

interp changer..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 04-12-2009 , 16:28   interp changer..
Reply With Quote #1

Code:
/* Plugin generated by notatnik */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Interp"
#define VERSION "1.0"
#define AUTHOR "FiFiX"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
}

public client_connect(id)
{
    if (!is_user_bot(id) && !is_user_hltv(id))
    {
        query_client_cvar(id, "ex_interp", "interp");
    }
}

public interp(id, const cvar[], const value[])
{ 
    new Float:f_value = str_to_float(value);
    if(f_value < 0.01 || f_value > 0.05)
    {
        console_cmd(id,"rate 20000; alias rate");
        server_cmd("wait");
        console_cmd(id,"cl_rate 20000; alias cl_rate");
        server_cmd("wait");
        console_cmd(id,"cl_cmdrate 100; alias cl_cmdrate");
        server_cmd("wait");
        console_cmd(id,"cl_updaterate 100; alias cl_updaterate");
        server_cmd("wait");
         console_cmd(id,"ex_interp 0.03; alias ex_interp");
         server_cmd("wait");
    }
}
Okay, when f_value < 0.01 plugin works, but when f_value > 0.05 it doesn't...
And when it works, it changes interp for 0.02200 and not for 0.03... Any ideas?
FiFiX is offline
Send a message via Skype™ to FiFiX
 



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 02:26.


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