Raised This Month: $ Target: $400
 0% 

[Help] IP-s


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 07-18-2014 , 17:52   [Help] IP-s
Reply With Quote #1

I have 3 server other ip-s but this script not work why ?

PHP Code:
#include <amxmodx> 

public plugin_init() 

    
register_plugin("Plugin de prueba""1.0""ILUSION"); 
    
CheckServerIP(); 


CheckServerIP() 

    new 
szIPs[][] = { 
        
"192.168.1.1"
        
"127.0.0.1" 
    
}; 
     
    new 
ip[16]; 
    
get_user_ip(0ipcharsmax(ip), 1); 
     
    for (new 
isizeof szIPsi++) 
    { 
        if (
equal(ipszIPs[i])) 
        { 
            
server_print("[AMXX] El servidor esta autorizado con la IP %s."szIPs[i]); 
            return; 
        }     
    } 
     
    
set_fail_state("[AMXX] Servidor no autorizado."); 

__________________
Free Palestine ♥
plazma 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 13:11.


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