Raised This Month: $10 Target: $400
 2% 

help me...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aNNNak1N
Junior Member
Join Date: Jan 2012
Location: Normandy, France
Old 02-12-2012 , 09:31   help me...
Reply With Quote #1

Hi, can you help me with a plugin...nick connected [country]
Picture: http://postimage.org/image/5f106ze91/

Last edited by YamiKaitou; 07-16-2012 at 08:39. Reason: restored post
aNNNak1N is offline
BeeFighter
Member
Join Date: Feb 2012
Old 02-12-2012 , 09:33   Re: help me...
Reply With Quote #2

Search before post.
BeeFighter is offline
aNNNak1N
Junior Member
Join Date: Jan 2012
Location: Normandy, France
Old 02-12-2012 , 09:44   Re: help me...
Reply With Quote #3

I find that's why I posted

Last edited by YamiKaitou; 07-16-2012 at 08:39. Reason: restored post
aNNNak1N is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-12-2012 , 10:12   Re: help me...
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <geoip>
#include <colorchat>

#define VERSION "1.0.0"

new szIP[16]

public 
plugin_init() {
    
register_plugin("User Connected"VERSION"NapoleoN#")
    
}

public 
client_putinserver(id) {
    
set_task(1.0"ShowMessage"id)
}

public 
ShowMessage(id) {
    new 
szCountry[32]; geoip_country(szIPszCountry)
    new 
szName[32] ; get_user_name(idszNamecharsmax(szName))
    
    
ColorChat(idGREEN"%s^x01 connected^x03 [%s]."szNameszCountry)

TESTED: Works.
__________________
My Plugins:


Accepting private projects.

Last edited by Napoleon_be; 02-12-2012 at 10:12.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
aNNNak1N
Junior Member
Join Date: Jan 2012
Location: Normandy, France
Old 02-12-2012 , 10:33   Re: help me...
Reply With Quote #5

works, but why
Code:
set_task(1.0


Last edited by YamiKaitou; 07-16-2012 at 08:40. Reason: restored post
aNNNak1N is offline
RoaR
Member
Join Date: Dec 2011
Old 02-12-2012 , 10:39   Re: help me...
Reply With Quote #6

Hmm, that should be shown like this:

PHP Code:
#include <amxmodx>
#include <geoip>
#include <colorchat>

public is_connected(id) {
new 
szCountry[32],szName[32],szIP[32];
geoip_country(szIP,szCountry)
get_user_name(id,szName,31)

ColorChat(id,GREEN,"%s^x01 has connected. Country:^x03 [%s].",szName,szCountry)


Last edited by RoaR; 02-12-2012 at 10:39.
RoaR is offline
aNNNak1N
Junior Member
Join Date: Jan 2012
Location: Normandy, France
Old 02-12-2012 , 10:49   Re: help me...
Reply With Quote #7

yeah! thanks all

Last edited by YamiKaitou; 07-16-2012 at 08:40. Reason: restored post
aNNNak1N is offline
RoaR
Member
Join Date: Dec 2011
Old 02-12-2012 , 10:53   Re: help me...
Reply With Quote #8

You're welcome.
RoaR is offline
BeeFighter
Member
Join Date: Feb 2012
Old 02-12-2012 , 10:55   Re: help me...
Reply With Quote #9

Quote:
Originally Posted by aNNNak1N View Post
I find that's why I posted
Took me 5 seconds to find such script. without asking help here.
BeeFighter is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-12-2012 , 11:00   Re: help me...
Reply With Quote #10

Quote:
Originally Posted by RoaR View Post
Hmm, that should be shown like this:

PHP Code:
#include <amxmodx>
#include <geoip>
#include <colorchat>

public is_connected(id) {
new 
szCountry[32],szName[32],szIP[32];
geoip_country(szIP,szCountry)
get_user_name(id,szName,31)

ColorChat(id,GREEN,"%s^x01 has connected. Country:^x03 [%s].",szName,szCountry)

Did you even test this?
__________________
My Plugins:


Accepting private projects.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 05:17.


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