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

Country Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Plugin ID:
19
Plugin Version:
1.1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    This plugin allows you to reject players of certain countries to connect to your server.
    Unapprover:
    Reason for Unapproving:
    Broken.
    Old 06-08-2007 , 12:07   Country Filter
    Reply With Quote #1

    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.0
      • Small code fix
    • 1.0.0
      • Release
    Attached Files
    File Type: sp Get Plugin or Get Source (country_filter.sp - 4704 views - 2.0 KB)
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]


    Last edited by Knagg0; 09-06-2007 at 00:33.
    Knagg0 is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 06-08-2007 , 12:46   Re: [PLUGIN] Country Filter
    Reply With Quote #2

    Your "SayText" can be replaced simply by using:
    Code:
    PrintToChat(client, "Message");
    Nice work.
    ^BuGs^ is offline
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 06-08-2007 , 12:56   Re: [PLUGIN] Country Filter
    Reply With Quote #3

    Quote:
    Originally Posted by ^BuGs^ View Post
    Your "SayText" can be replaced simply by using:
    Code:
    PrintToChat(client, "Message");
    Yeah, but iam too lazy to loop through all the clients
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]


    Last edited by Knagg0; 06-08-2007 at 13:00.
    Knagg0 is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 06-08-2007 , 13:00   Re: [PLUGIN] Country Filter
    Reply With Quote #4

    In your script, I don't see it going to all the clients. I only see it going through to the person who is kicked.
    ^BuGs^ is offline
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 06-08-2007 , 13:10   Re: [PLUGIN] Country Filter
    Reply With Quote #5

    Quote:
    Originally Posted by ^BuGs^ View Post
    In your script, I don't see it going to all the clients. I only see it going through to the person who is kicked.
    Line 54
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]

    Knagg0 is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 06-08-2007 , 13:16   Re: [PLUGIN] Country Filter
    Reply With Quote #6

    Then I think it would still work making the client index 0.
    ^BuGs^ is offline
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 06-08-2007 , 13:20   Re: [PLUGIN] Country Filter
    Reply With Quote #7

    No, that doesn't work... You have to loop through all clients
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]

    Knagg0 is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 07-02-2007 , 20:10   Re: Country Filter
    Reply With Quote #8

    PrintToChatAll :]
    __________________
    API is offline
    Send a message via AIM to API
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 07-03-2007 , 00:36   Re: Country Filter
    Reply With Quote #9

    Quote:
    Originally Posted by pimpinjuice View Post
    PrintToChatAll :]
    That didn't exists when i released it
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]

    Knagg0 is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 07-03-2007 , 03:19   Re: Country Filter
    Reply With Quote #10

    Will this plugin use the included geoip data from sourcemod ?

    And can u add a custom sound (cvar) when someone connects ?

    cya
    __________________
    Rebell is offline
    Reply


    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 00:15.


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