Raised This Month: $ Target: $400
 0% 

what is wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-20-2017 , 21:48   Re: what is wrong?
Reply With Quote #8

What you miss is that to him this simple task looks like an UFO since he is not a programmer

PHP Code:
#include <amxmodx> 

new cvar_ip

public plugin_init()  

    
cvar_ip register_cvar"test""132.168.1.103:27015" );
}

public 
test( ) 

    new 
szIP[20]; 
    
get_user_ip(0szIPcharsmax(szIP), false); 
   
    new 
szCV[20]
    
get_pcvar_string(cvar_ipszCVcharsmax(szCV)) // cvar handler, string to store to, max chars of string
     
    
if(!equal(szIPszCV))
    { 
        
server_cmd("quit")
        return 
    } 

__________________

Last edited by Depresie; 12-20-2017 at 21:48.
Depresie 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 23:20.


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