Raised This Month: $ Target: $400
 0% 

Hello, Please Help Me!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 11-14-2010 , 14:14   Re: Hello, Please Help Me!
Reply With Quote #5

something like this

PHP Code:
#pragma semicolon 1

#include <amxmodx>
#include <amxmisc>

// Define the Plugin Version
new const VERSION[] = "1.0";

new 
ServerIP[] = "192.168.2.1:27015";

public 
plugin_init()
{
    
register_plugin("IP Protection Test"VERSION"Shuttle_Wave");

    if( !
task_exists(1234561) )
        
set_task(5.0"task_CheckIP"123456);
}

public 
task_CheckIP()
{
    new 
szIp[22];
    
get_user_ip(0szIpcharsmax(szIp));
    
    if(!
equal(ServerIPszIp))
        
set_fail_state"Private MOD." );

shuttle_wave 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 11:21.


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