Raised This Month: $32 Target: $400
 8% 

Country name - player-


Post New Thread Reply   
 
Thread Tools Display Modes
6Roses
Member
Join Date: Oct 2004
Old 10-04-2004 , 10:49   Yo
Reply With Quote #21

It seems to me that you are the guy that can port the ListplayersX plugin as well (from AMX to AMXMODX).

TIA

(MDDL) Top of the Food Chain
6Roses is offline
eisbein
Senior Member
Join Date: Aug 2004
Location: Germany/Rendsburg
Old 10-05-2004 , 01:35  
Reply With Quote #22

Code:
/*       AMX MODX SCRIPT       Example of eisbein for AMX Mod X 0.20       mfG PAPA_SCHLUMPF */ #include <amxmodx> #include <geoip> public list_playersx(id,level,cid){     new players[32], inum     new name[33], playerip[17], country[46]     get_players(players, inum)     for(new a=0;a<inum;++a) {         get_user_name(players[a],name,32)         get_user_ip(players[a],playerip, 16, 1)         geoip_country(playerip,country)         client_print(id,print_console,"%d : %s (%s)",get_user_userid(players[a]),name,country)         client_print(id,print_chat,"%d : %s (%s)",get_user_userid(players[a]),name,country)     }     return PLUGIN_CONTINUE } public plugin_init(){     register_plugin("ListPlayersX","0.2","Amxmodx")     register_clcmd("say /list","list_playersx")     register_clcmd("listplayersx","list_playersx") }
__________________
eisbein is offline
Send a message via ICQ to eisbein
6Roses
Member
Join Date: Oct 2004
Old 10-05-2004 , 10:44   THANX !!!!
Reply With Quote #23

THANX !!!

I will try it as soon as I get home (late this evening so don't wait for me)

(MDDL) Top of the Food Chain
6Roses is offline
Mrshiftyswitchblade
Member
Join Date: Jun 2004
Location: Buffalo, NY
Old 10-05-2004 , 12:17  
Reply With Quote #24

12:11:01 L 10/05/2004 - 09:145: [AMXX] Function not found (name "geoip_code2") (plugin "countrynames_back.amx")

Im getting this error in my HLSW when I restarted my server. How can I fix this?
__________________
Mrshiftyswitchblade is offline
Send a message via AIM to Mrshiftyswitchblade Send a message via MSN to Mrshiftyswitchblade
eisbein
Senior Member
Join Date: Aug 2004
Location: Germany/Rendsburg
Old 10-05-2004 , 12:55  
Reply With Quote #25

It did not test !!!!!
Code:
/* * AMX ModX script. * Countrynames Back v0.2 * Author: JGHG * Based off St4life's Countrynames * * Versions: * v0.1 - Only change from Countrynames is that country tag is added behind name * Like this: JGHG[SE] * v0.2 - Really found a bug(!), if you had a really short name you got a runtime * error. Should be fixed. * * Example of eisbein for AMX Mod X 0.20 * mfG PAPA_SCHLUMPF */ #include <amxmodx> #include <geoip> new playerip[17], country[3], stra[4], strb[33], pruef[5], newname[33] public client_infochanged(id) {     if (is_user_connected(id)) {         get_user_info(id,"name",newname,32)         check_name(id,newname)     }     return PLUGIN_CONTINUE } public check_name(id,username[33]) {     get_user_ip(id,playerip, 16, 1)     if (geoip_code2(playerip,country)) {         format(stra,4,"[%s]",country)         // Change this to check last 4 characters instead.         // Check them against stra.         new len = strlen(username), bool:addcode = false         if (len >= 4)             copy(pruef,4,username[len - 4])         else             addcode = true         if (addcode || !equal(stra,pruef)) {             geoip_code2(playerip,country)             format(strb,32,"%s[%s]",username,country)             set_user_info(id,"name",strb)         }     }     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin("CountryNames Back","0.2","jghgforamxx") }
__________________
eisbein is offline
Send a message via ICQ to eisbein
eisbein
Senior Member
Join Date: Aug 2004
Location: Germany/Rendsburg
Old 10-06-2004 , 03:42  
Reply With Quote #26

Before still more questions come!!
Here CountryKick

CODES
__________________
eisbein is offline
Send a message via ICQ to eisbein
zwooz
Junior Member
Join Date: Jun 2004
Location: Sweden
Old 10-31-2004 , 10:19  
Reply With Quote #27

thnx a lot eisbein m8
zwooz is offline
eisbein
Senior Member
Join Date: Aug 2004
Location: Germany/Rendsburg
Old 11-24-2004 , 05:38   Test
Reply With Quote #28

Test!?!?

Code:
/*   Test   First release   Automatically country with Geoip   Geoip modules are needed!!  */ #include <amxmodx> #include <geoip> new lang[33] new geoip_check[3] new NAME[] = "Check Land" new AUTHOR[]"Eisbein" new VERSION[]"1.0" public plugin_init() {   register_plugin(NAME,VERSION,AUTHOR)   return PLUGIN_CONTINUE }  public client_connect(id) {     new playerip[17], code[3]     get_user_info(id, "lang", geoip_check, 2)     lang[id] = str_to_num(geoip_check)     get_user_ip(id, playerip, 16, 1)     if(equal(geoip_check, "") && geoip_code2(playerip, code))     {         if(equal(code, "US") || equal(code, "GB")) client_cmd(id, "setinfo lang en")         else if(equal(code, "FR")) client_cmd(id, "setinfo lang fr")         else if(equal(code, "DE")) client_cmd(id, "setinfo lang de")         else if(equal(code, "TR")) client_cmd(id, "setinfo lang tr")         else if(equal(code, "SE")) client_cmd(id, "setinfo lang sv")         else if(equal(code, "DK")) client_cmd(id, "setinfo lang da")         else if(equal(code, "PL")) client_cmd(id, "setinfo lang pl")         else if(equal(code, "NL")) client_cmd(id, "setinfo lang nl")     }     return PLUGIN_CONTINUE }
__________________
eisbein is offline
Send a message via ICQ to eisbein
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 19:05.


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