Raised This Month: $ Target: $400
 0% 

[Help] IP-s


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
plazma
Senior Member
Join Date: Oct 2013
Old 07-19-2014 , 00:23   Re: [Help] IP-s
Reply With Quote #8

This work and how to make it for 3 ips

PHP Code:
#include <amxmodx>

new const VERSION[] = "0.0.1"

new const SERVERIP[] = "173.21.157.21" 

public plugin_init()
{
    
register_plugin("protected plug"VERSION"ConnorMcLeod")

    new 
szIp[22]
    
get_user_ip(0szIpcharsmax(szIp))

    if( !
equal(szIpSERVERIP) )
    {
        
set_fail_state("Sorry, this plugin is private")
    }

    
// REGISTER STUFF HERE

exp:
PHP Code:
new const SERVERIP[] = "173.21.157.21""173.21.157.22""173.21.157.23" 
its posbile for 3 ips ??
__________________
Free Palestine ♥
plazma 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 13:11.


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