Raised This Month: $51 Target: $400
 12% 

[CSGO] Basic Crash if not IP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brrdy
Senior Member
Join Date: Feb 2015
Old 03-10-2015 , 10:26   [CSGO] Basic Crash if not IP
Reply With Quote #1

Code:
        new Handle:grableip = FindConVar("net_public_adr");
        decl String:convar[64];
        GetConVarString(grableip, convar, sizeof(convar));
        if(StrEqual(convar, "1.1.1.1")) //Your server ip
        {
                ServerCommand("echo Server Verified");
        }
        else
        {
                ServerCommand("exit");
        }
Add that to your OnPluginStartup and replace 1.1.1.1

Thanks Osh for help

This was a request and is for SMX protection it will not protect if the person decompiles as the IP can be changed,etc,etc.
__________________
Need help with something regarding your plugin? Or want a new plugin made? For free!!?!?!?!??!? Click HERE! I will do nearly any request <3 If I post in scripting and I resolve and don't post how just shoot me a pm linking me the thread and I will update

Last edited by Brrdy; 03-10-2015 at 11:06. Reason: Tagged
Brrdy is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 03-10-2015 , 10:48   Re: Basic Crash if not IP
Reply With Quote #2

You should tag this thread, this is a game specific example.
__________________

Last edited by Impact123; 03-10-2015 at 10:49.
Impact123 is offline
Brrdy
Senior Member
Join Date: Feb 2015
Old 03-10-2015 , 11:05   Re: Basic Crash if not IP
Reply With Quote #3

Quote:
Originally Posted by Impact123 View Post
You should tag this thread, this is a game specific example.
Oh had no clue I will do that now
__________________
Need help with something regarding your plugin? Or want a new plugin made? For free!!?!?!?!??!? Click HERE! I will do nearly any request <3 If I post in scripting and I resolve and don't post how just shoot me a pm linking me the thread and I will update
Brrdy is offline
Reply



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:41.


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