Raised This Month: $ Target: $400
 0% 

get hltv delay value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vlad_slick
Member
Join Date: Jul 2009
Old 06-07-2014 , 02:20   Re: get hltv delay value
Reply With Quote #8

Try this:
PHP Code:
#include <amxmodx>

#define PLUGIN "HLTV Delay Checker"
#define VERSION "1.0"
#define AUTHOR "you"

#define MIN_DELAY 15

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id) {
    if(
is_user_hltv(id)) {        
        static 
hltv_delay[3
        
get_user_info(id"hdelay"hltv_delay2)
        if(
str_to_num(hltv_delay)<MIN_DELAY)
            
server_cmd("kick #%d ^"HLTV Delay(%dtoo low (MAX=%d)^" ",get_user_userid(id), str_to_num(hltv_delay),MIN_DELAY)
        
    }


Last edited by vlad_slick; 06-07-2014 at 02:20.
vlad_slick 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 09:44.


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