Raised This Month: $ Target: $400
 0% 

Rate setter updated need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
godlike
Senior Member
Join Date: Apr 2005
Old 06-21-2005 , 14:53   Rate setter updated need help
Reply With Quote #1

well i just add one ting to the rate setter.
Make it admin protection .So that the players cant change the settings in the game . And the admin(s) can change it whenever they want.
And add this =
ex_interp 0.1
I dont think its hard thx.
godlike is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-21-2005 , 15:43  
Reply With Quote #2

sorry, i cant read this script, the logic doesnt fit...:/ but maybe im just tired
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-21-2005 , 17:11  
Reply With Quote #3

ok here is the script with admin you need admin_cvar to change it, i hope it works but what do should ex_interp 1.0 do where is it is it in an inc or is it a new float? and why you need this
Code:
/* AMXMOD X script. * * version 1.0 Scripted by Godlike * *   v1.0 - Initial Release * * */ #include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Rates Setter","1.0","godlike")     register_cvar("cvar_i_RS","1")     set_task(2.0,"Set_Rates",0,"",0,"b")     return PLUGIN_HANDLED } public Set_Rates(id) {     if(get_user_flags(id) == ADMIN_CVAR) {         new i = get_cvar_num("cvar_i_RS")         if(i<=32)         {             new i_connected = is_user_connected(i)             new i2 = i + 1             if(i_connected==1)             {                 client_cmd(i,"rate 25000")                 client_cmd(i,"cl_cmdrate 101")                 client_cmd(i,"cl_updaterate 101")                                 set_cvar_num("cvar_i_RS",i2)                 set_task(0.0,"Set_Rates")                             return PLUGIN_HANDLED             }             else             {                 set_cvar_num("cvar_i_RS",i2)                 set_task(0.0,"Set_Rates")                 return PLUGIN_HANDLED             }         }         else         {             set_cvar_num("cvar_i_RS",1)             return PLUGIN_HANDLED         }         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
__________________
- Bye bye!
nightscreem is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-21-2005 , 17:21  
Reply With Quote #4

it is a cvar....
Code:
client_cmd(i,"ex_interp 0.1")
add this under the other client_cmd's

and night...
Code:
if(get_user_flags(id) == ADMIN_CVAR)
dont this only do the commands on admins then?

maybe
Code:
if(!is_user_admin(id))
insteed?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
godlike
Senior Member
Join Date: Apr 2005
Old 06-22-2005 , 08:16  
Reply With Quote #5

thx dude going to test it now
godlike is offline
godlike
Senior Member
Join Date: Apr 2005
Old 06-22-2005 , 08:24  
Reply With Quote #6

nope same thing....
No admin protection im sry
godlike is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-22-2005 , 15:11  
Reply With Quote #7

try this...
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Rates Setter","1.0","godlike")     register_cvar("cvar_i_RS","1")     set_task(2.0,"Set_Rates",0,"",0,"b")     return PLUGIN_HANDLED } public Set_Rates() {        new i = get_cvar_num("cvar_i_RS")     if(i<=32) {         new i2 = i + 1         if(is_user_connected(i)) {             if (!is_user_admin(i) {                 client_cmd(i,"rate 25000")                 client_cmd(i,"cl_cmdrate 101")                 client_cmd(i,"cl_updaterate 101")                 client_cmd(i,"ex_interp 0.1")             }             set_cvar_num("cvar_i_RS",i2)             set_task(0.0,"Set_Rates")                         return PLUGIN_HANDLED         }         else {             set_cvar_num("cvar_i_RS",i2)             set_task(0.0,"Set_Rates")             return PLUGIN_HANDLED         }     }     else {         set_cvar_num("cvar_i_RS",1)         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED     }
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-22-2005 , 15:41  
Reply With Quote #8

but they can still change the interp
__________________
- Bye bye!
nightscreem is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-22-2005 , 15:56  
Reply With Quote #9

how can they change it?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-22-2005 , 16:25  
Reply With Quote #10

in console it's a client command i think you should do
set_user_info(id,set_user_info(id, "ex_interp", "0.1");
with a cvar
__________________
- Bye bye!
nightscreem 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 08:01.


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