Raised This Month: $ Target: $400
 0% 

Forces On ADMIN WIT IMMUNITY


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tm
Member
Join Date: Jun 2005
Old 04-25-2006 , 23:45   Forces On ADMIN WIT IMMUNITY
#1

Code:
#include <amxmodx>  
#include <amxmisc>  
#include <engine>  
 
new pon
 
public plugin_init()  
{  
        register_plugin("AMX Force Rates", "1.0", "Taher Ali")
        set_task(5.0, "ratestask", 343251, "", 0, "b")
}  
 
public ratestask()
{
        for (new i = 0; i < 33; i++)
        {
                if(is_user_connected(i) && !(get_user_flags(i) & ADMIN_IMMUNITY) && get_pcvar_num(pon))  
                {
                        new all[32], all_num
                        get_players(all,all_num)
                        new srv_maxrate = get_cvar_num("sv_maxrate")
                        new srv_minrate = get_cvar_num("sv_minrate")
        
                        for (new i=0;i < all_num;i++)
                        {
                                new s_client_rate[8]
                                get_user_info(all[i],"rate",s_client_rate,7)
                                new client_rate = str_to_num ( s_client_rate )
                        
                                if ( client_rate > srv_maxrate ) {
                                        client_cmd(all[i],"rate %d",srv_maxrate)
                                }
                                else if ( client_rate < srv_minrate ) {
                                        client_cmd(all[i],"rate %d",srv_minrate)
                                }
                        }
                }
        }
}
Hey i dont know wat iam doing wrong when i put this in my server it forces
the rate on me idk why. i want it not to force on ADMIN_IMMUNITY Please Help.
tm is offline
 


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 05:11.


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