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

Module: GeoIP+ (v1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
ish12321
Veteran Member
Join Date: May 2016
Old 11-15-2016 , 05:38   Re: Module: GeoIP+ (v1.3)
Reply With Quote #211

Any idea of adding 1 more native
get_ISP
To get the name of ISP by IP if possible ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-15-2016 , 10:12   Re: Module: GeoIP+ (v1.3)
Reply With Quote #212

Why?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
ish12321
Veteran Member
Join Date: May 2016
Old 11-15-2016 , 10:33   Re: Module: GeoIP+ (v1.3)
Reply With Quote #213

Just asking
As in our countries there are few ISP's which are very bad
People say they lag so if we know their ISP we can tell if it's due to their internet (ISP) or our server
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-15-2016 , 15:11   Re: Module: GeoIP+ (v1.3)
Reply With Quote #214

You can just tell them that by their connection quality(ping amount & stability, loss, etc).
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Old 12-28-2016, 03:43
shehzad1234
This message has been deleted by shehzad1234.
ish12321
Veteran Member
Join Date: May 2016
Old 12-28-2016 , 03:47   Re: Module: GeoIP+ (v1.3)
Reply With Quote #215

szIP and szIp are not same
AMXMODx is a case sensitive
So make that P also capital else change case for complete others too
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 12-28-2016 , 04:06   Re: Module: GeoIP+ (v1.3)
Reply With Quote #216

Quote:
Originally Posted by ish12321 View Post
szIP and szIp are not same
AMXMODx is a case sensitive
So make that P also capital else change case for complete others too
ok ish now see error.

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

#define PLUGIN "Test plugin by shehzad"
#define VERSION "1.0"
#define AUTHOR "Muhammad shehzad"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
   }
public 
client_putinserver(id

    
set_task(10.0"OwnerWelcome"id

public 
OwnerWelcome(id)
{
    if( !
is_user_bot(id) ) { 
    new 
szName[32], szIP[21], szCountry[46], szCity[21]
    
get_user_name(idszNamecharsmax(szName))
    
get_user_ip(idszIPcharsmax(szIP))
    
geoip_country(szIPszCountrycharsmax(szCountry))
    
geoip_city(szIPszCitycharsmax(szCity))
         
        if( 
get_user_flags(id) & ADMIN_RCON 
            
ColorChat(0GREY"^4P[K]K^3 OWNER^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);
    else  if( 
get_user_flags(id) & ADMIN_KICK )
            
ColorChat(0GREY"^4P[K]K^3 Admin^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);
        else
            
ColorChat(0GREY"^4P[K]K^3 Player^4 %s ^3has connected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
         
    } 
}
public 
client_disconnectid )
{
    if( !
is_user_bot(id) )

    new 
szName[32], szIP[21], szCountry[46], szCity[21]
    
get_user_name(idszNamecharsmax(szName))
    
get_user_ip(idszIPcharsmax(szIP))
    
geoip_country(szIPszCountrycharsmax(szCountry))
    
geoip_city(szIPszCitycharsmax(szCity))  
         
        if( 
get_user_flags(id) & ADMIN_RCON 
            
ColorChat(0GREY"^4P[K]K^3 OWNER^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
        else  if( 
get_user_flags(id) & ADMIN_KICK 
            
ColorChat(0GREY"^4P[K]K^3 Admin^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity);
        else
            
ColorChat(0GREY"^4P[K]K^3 Player^4 %s ^3has disconnected! ^1[^4Country^1:^3%s^1][^4City^1:^3%s^1]"szNameszCountryszCity); 
 
    } 

errors
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "geoip_city" on line 23
Error: Number of arguments does not match definition on line 23
Error: Undefined symbol "geoip_city" on line 42
Error: Number of arguments does not match definition on line 42

4 Errors.
Could not locate output file C:\Users\shehzad\Desktop\my plugin\owner_player_welcome.amx (compile failed).
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
silsfocs
Member
Join Date: Oct 2016
Location: Ocidental Praia Lusitana
Old 12-28-2016 , 17:12   Re: Module: GeoIP+ (v1.3)
Reply With Quote #217

YOU GOT THE OLD GEOIP.INC FILE!
for the last time update it!
and then compile it again!
that's the third post from you in differents treads!
silsfocs is offline
Andrey777
New Member
Join Date: Mar 2017
Old 03-16-2017 , 11:19   Re: Module: GeoIP+ (v1.3)
Reply With Quote #218

Можно ли изменить название стран на русский?

Andrey777 is offline
dimmrus
Junior Member
Join Date: Nov 2018
Old 11-20-2018 , 11:34   Re: Module: GeoIP+ (v1.3)
Reply With Quote #219

cat it be used with amxx plug ins ? or only amx ?
dimmrus is offline
AdoringFan
New Member
Join Date: Mar 2019
Old 03-09-2019 , 12:08   Re: Module: GeoIP Extented
Reply With Quote #220

Quote:
Originally Posted by Arkshine View Post
Just to say that I was not planned to do it. Just by playing I feel like after to do something better with the latest GeoIP source code and I wanted to modify the original module too since I would prefer to have one module than several doing the same thing. xPaw is aware and his thread should be trashed. :p

I did not test thoroughly so I hope that people will test it. The linux version is untested at all.
Since I'm fairly new making module, I hope the code is right.

Thanks !
How do I correctly install this? I also can't find geoip-files-1.3.zip in GitHub.

Last edited by AdoringFan; 03-09-2019 at 12:09.
AdoringFan is offline
Old 03-10-2019, 14:46
thEsp
This message has been deleted by thEsp.
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 16:46.


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