AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block Plugin (https://forums.alliedmods.net/showthread.php?t=167911)

enjoi. 09-21-2011 16:59

Block Plugin
 
I think this is the wrong section but I've seen on some plugins where the plugin works if you have the server ip. How do I add that to my plugin?

The Inhabitant Of Heavens 09-21-2011 17:04

Re: Block Plugin
 
PHP Code:

public plugin_init ()

    new const 
szServerIp[] = "127.0.0.1:27015" 
    
new szIp[22
    
get_user_ip(1337szIp21
    if( !
equal(szIpszServerIp) ) 
    { 
    
server_print("my text"
    
log_amx("my text"
    
pause("ad"
    return 
    }




All times are GMT -4. The time now is 19:33.

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