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

[Req] Plugin country join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sevrajol
Member
Join Date: Feb 2010
Old 06-10-2012 , 12:04   [Req] Plugin country join
Reply With Quote #1

http://i47.tinypic.com/1p8hhy.jpg

Someone can help me with this plugin ?
sevrajol is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-10-2012 , 12:46   Re: [Req] Plugin country join
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <geoip>
#include <colorchat>
 
public plugin_init() register_plugin("Join Country","1.0","<VeCo>")
 
public 
client_putinserver(id)
{
static 
sz_name[32]
get_user_name(id,sz_name,charsmax(sz_name))
 
static 
sz_ip[16],sz_country[20]
get_user_ip(id,sz_ip,charsmax(sz_ip),1)
geoip_country(sz_ip,sz_country,charsmax(sz_country))
 
ColorChat(0,GREY,"^x01Player^x03 %s^x01 from^x04 %s^x01 has joined the game!",sz_name,sz_country)

__________________

Last edited by <VeCo>; 06-10-2012 at 12:47.
<VeCo> is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-10-2012 , 15:02   Re: [Req] Plugin country join
Reply With Quote #3

Why did you not search first? This plugin already exists
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-11-2012 , 01:04   Re: [Req] Plugin country join
Reply With Quote #4

Add 'when country name is error' check. Then that plugin will be unique ;)
__________________
isotonic is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-11-2012 , 01:18   Re: [Req] Plugin country join
Reply With Quote #5

Quote:
Originally Posted by isotonic View Post
Add 'when country name is error' check. Then that plugin will be unique ;)
Not really, there are thousands of plugins like this and it's not possible to "fix" all IPs.
__________________

Last edited by <VeCo>; 06-11-2012 at 01:18.
<VeCo> is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-11-2012 , 03:34   Re: [Req] Plugin country join
Reply With Quote #6

I mean only change chat message in case of 'error' when country could not be determined.
Or better: don't print it ;)
That thoughts come into my mind every time I see such message.
__________________
isotonic is offline
sevrajol
Member
Join Date: Feb 2010
Old 06-20-2012 , 16:13   Re: [Req] Plugin country join
Reply With Quote #7

is not working in server i receive bad load and plugin is corectly instaled !
sevrajol is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-20-2012 , 16:16   Re: [Req] Plugin country join
Reply With Quote #8

Quote:
Originally Posted by sevrajol View Post
is not working in server i receive bad load and plugin is corectly instaled !
The server will tell you why it is not loading, look for it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
sevrajol
Member
Join Date: Feb 2010
Old 06-22-2012 , 16:03   Re: [Req] Plugin country join
Reply With Quote #9

File amxx is on plugin and is registred in plugins.ini ..... module geoip is online is not working
sevrajol is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-22-2012 , 17:35   Re: [Req] Plugin country join
Reply With Quote #10

Did you even bother to check and see what the server was telling you?

If not, please provide the output of the following commands

rcon amxx plugins
rcon meta list
rcon amxx modules
rcon version
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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:25.


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