Raised This Month: $ Target: $400
 0% 

Help for kickmenu with player country.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-02-2010 , 11:55   Help for kickmenu with player country.
Reply With Quote #1

I got some problem with the kickmenu with player country.
I have compiled the amxx, and I tested with my friend.
He said he could not see anything after my name and his name too, but I can see his country after his name and my name is no country too.
Here is the code what I have edited, please help to correct my mistake.
The red color is what I have added in the basic code from plmenu.sma
Code:
#include <geoip> //For test)
new g_IP[16], g_country[32] //For test)
*leave out
displayKickMenu(id, pos)
{
*leave out
	for (new a = start; a < end; ++a)
	{
		i = g_menuPlayers[id][a]
		get_user_name(i, name, 31)
		get_user_ip(id, g_IP, 15, 1)
		geoip_country(g_IP, g_country, 45)

		if (access(i, ADMIN_IMMUNITY) && i != id)
		{
			++b
		
			if (g_coloredMenus)
				len += format(menuBody[len], 511-len, "\d%d. %s (%s)^n\w", b, name, g_country)
			else
				len += format(menuBody[len], 511-len, "#. %s (%s)^n", name, g_country)
		} else {
			keys |= (1<<b)
				
			if (is_user_admin(i))
				len += format(menuBody[len], 511-len, g_coloredMenus ? "%d. %s \r*^n\w" : "%d. %s (%s) *^n", ++b, name, g_country)
			else
				len += format(menuBody[len], 511-len, "%d. %s (%s)^n", ++b, name, g_country)
		}
	}
*leave out
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others

Last edited by GarbageBox; 08-02-2010 at 12:09.
GarbageBox is offline
 



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:08.


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