AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Solved][TF2] Country filter with block download? (https://forums.alliedmods.net/showthread.php?t=251980)

Research 11-23-2014 11:13

[Solved][TF2] Country filter with block download?
 
my hosting company don't want give traffic for foreigns(foreign: 15gb in one month)
so I need plugin 'when foreign player try connect in my server, block download custom files and block connect'
if it already release somewhere, tell me where it is. thanks

friagram 11-23-2014 16:28

Re: [TF2] Country filter with block download?
 
Change providers.
http://www.nfoservers.com/webhosting.php#differences

thecount 11-24-2014 19:36

Re: [TF2] Country filter with block download?
 
The Nazis are evolving and moving to TF2!.... But I think it would go something like this
PHP Code:

#include <sourcemod>
#include <geoip>
public bool:OnClientConnect(clientString:rejectmsg[], length){
    new 
String:country[4], String:IP[42];
    
GetClientIP(clientIPsizeof(IP));
    
GeoipCode3(IPcountry);
    if(!
StrEqual(country"USA"false)){//If they're not from USA. (CAN BE REPLACED WITH ANY 3 LETTER ABREVIATION
        
Format(rejectmsglength"Connections from your country are not allowed.");
        return 
false;
    }
    return 
true;



Bacardi 11-25-2014 06:00

Re: [TF2] Country filter with block download?
 
Country Filter 2nd Edition
and don't use admin immunity, update geoip.dat

Research 11-25-2014 20:31

Re: [TF2] Country filter with block download?
 
Thanks for reply everyone. it would really help.


All times are GMT -4. The time now is 16:08.

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