Raised This Month: $ Target: $400
 0% 

Help vote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 05-08-2016 , 15:54   Help vote
Reply With Quote #1

Code:
public vote()
{
	
	new ad[32],sznum[6]
	new menu = menu_create("\rVote For CT","vote_handler")
	for(new i = 1;i<=get_maxplayers();i++)
	if(is_user_connected(i) && get_user_team(i) == 2)
	
	
	
	{
		num_to_str(i,sznum,5)
		get_user_name(i,ad,31)
		menu_additem(menu,ad,sznum)
		
		
		
	}
	menu_display(id,menu, 0)
	return PLUGIN_HANDLED
}
I can show all cts in menu but i dont know how to select the most voted player how to do it? im newbie help please

Last edited by pupdebox; 05-08-2016 at 16:16.
pupdebox 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 18:35.


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