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

country filter (working again)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sodafr
Member
Join Date: Apr 2007
Location: Paris, France
Plugin ID:
288
Plugin Version:
1.1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows you to reject players of certain countries to connect to your server.
    Old 02-17-2008 , 12:09   country filter (working again)
    Reply With Quote #1

    First of all, it is Knagg0's plugin
    (see http://forums.alliedmods.net/showthread.php?p=487013)

    CVARS:
    • cf_mode
      • 1 = Only allow "cf_countries"
      • 2 = Allow all except "cf_countries"
      • Default: 1
    • cf_countries
      • List of the countries
      • Example: "EN US DE NL"
      • Default: ""
    • cf_reject_msg
      • Message that is shown to the player that was rejected
      • %s = country
      • Default: "Your country (%s) isn't allowed on this server"
    • cf_connect_msg
      • Message that is shown to all players when a player connects
      • 1st %s = player
      • 2nd %s = country
      • Default: "%s (Country: %s) was allowed to connect"
    CHANGELOG:
    • 1.1.1
      • kick is back.
    • 1.1.0
      • Small code fix
    • 1.0.0
      • Release
    current GeoIP database is 20080301 (included in sm v1.0)
    Attached Files
    File Type: sp Get Plugin or Get Source (country_filter.sp - 11909 views - 2.2 KB)

    Last edited by sodafr; 03-24-2008 at 11:57.
    sodafr is offline
    pRED*
    Join Date: Dec 2006
    Old 02-19-2008 , 01:46   Re: a working country filter
    Reply With Quote #2

    What's the difference between this and Knagg0's?
    pRED* is offline
    sodafr
    Member
    Join Date: Apr 2007
    Location: Paris, France
    Old 02-19-2008 , 05:57   Re: a working country filter
    Reply With Quote #3

    Quote:
    Originally Posted by pRED* View Post
    What's the difference between this and Knagg0's?
    OnClientConnect doesn't kick anyone even with a false return
    (since nov/dec 2007 some users complained about that).
    sodafr is offline
    pRED*
    Join Date: Dec 2006
    Old 02-20-2008 , 17:11   Re: a working country filter
    Reply With Quote #4

    You should update your first post with more information.

    I'll approve this and un-approve Knagg0's for the moment. If he turns up again and fixes his it'll probably get re-approved.
    pRED* is offline
    sodafr
    Member
    Join Date: Apr 2007
    Location: Paris, France
    Old 02-20-2008 , 18:38   Re: a working country filter
    Reply With Quote #5

    Quote:
    Originally Posted by pRED* View Post
    You should update your first post with more information.

    I'll approve this and un-approve Knagg0's for the moment. If he turns up again and fixes his it'll probably get re-approved.
    Another suggestion, if you (or someone else) have enough admin rights, you can just update the sp file in the Knagg0's post and delete my topic. It may be more logical.
    Be that as it may, I will update my first post soon.
    sodafr is offline
    shadenz
    Junior Member
    Join Date: Jul 2006
    Old 02-21-2008 , 22:26   Re: country filter (working again)
    Reply With Quote #6

    Thanks! Any chance of adding immunity for admins or something?
    shadenz is offline
    TAZED
    Junior Member
    Join Date: Jan 2008
    Old 02-27-2008 , 04:45   Re: country filter (working again)
    Reply With Quote #7

    Sorry for being new but where so i change the cvars? Do i need to create a .cfg file and/ or where do i put it?
    TAZED is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 02-27-2008 , 04:53   Re: country filter (working again)
    Reply With Quote #8

    Quote:
    Originally Posted by TAZED View Post
    Sorry for being new but where so i change the cvars? Do i need to create a .cfg file and/ or where do i put it?
    Your server.cfg is probably the best place.
    bl4nk is offline
    TAZED
    Junior Member
    Join Date: Jan 2008
    Old 02-27-2008 , 23:31   Re: country filter (working again)
    Reply With Quote #9

    Still doesn't say if it's working or not even though i put the cvar's in my server config. The plugin is loaded but i don't know how i get it to read the cvars. Can you please list where and how to install this plugin for a new sourcemod user.
    TAZED is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 02-27-2008 , 23:47   Re: country filter (working again)
    Reply With Quote #10

    Just type the cvar into the server console without any arguments and it will reply with what it's set to.
    bl4nk 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 21:36.


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