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

Help with players menu


Post New Thread Reply   
 
Thread Tools Display Modes
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 03-21-2018 , 04:34   Re: Help with players menu
Reply With Quote #11

Bump!

Last edited by Saint Sinner; 03-21-2018 at 04:34.
Saint Sinner is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 03-21-2018 , 06:05   Re: Help with players menu
Reply With Quote #12

Code:
	new menu = menu_create( "\y[\rArena\y]", "choose_playermenu_handler");
	menu_additem(menu, "\r[!]\yUpdate players\r[!]^n\yChallenge a player:", "0", 0);
	new players[32], pnum;
	new szName[32], szTempid[32], Desc[64];
	get_players(players, pnum);
	for (new i; i<pnum; i++)
	{
		Challenged = players[i];
		if (is_user_alive(Challenged) && (Challenger != Challenged))
		{
		    get_user_name(Challenged, szName, charsmax(szName));
		    formatex(Desc, charsmax(Desc), in_Duel[Challenged] ? "\d%s \y[\rIn Arena\y]" : "%s", szName);

	            if(his_offline[Challenged])
	            {
                        formatex(Desc, charsmax(Desc), his_offline[Challenged] ? "\d%s \y[\rOffline\y]" : "%s", szName);
                    }
		    num_to_str(Challenged, szTempid, charsmax(szTempid));
		    menu_additem(menu, Desc, szTempid, 0, g_MenuCallback);
		}

	}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
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 08:10.


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