Code:
public CmdVoteMenu_Handler( client, iMenu, item )
{
if ( item != MENU_EXIT && is_user_connected( id ) )
{
if ( !g_iCounter )
return 1;
if ( g_iPlayersVotes[ client ] != DAY_NONE )
return 1;
g_iPlayersVotes[ client ] = g_iSelectedDays[ item ];
g_iVotes[ item ]++;
ColorChat( 0, RED, "%s^x03 %s^x01 has voted to^x04 %s^x01.", g_szPrefix, GetUserName( client ), g_szDaysData[ g_iSelectedDays[ item ] ][ m_DayName ] );
}
return 1;
}
For 1:
Code:
new iPlayers[ 32 ], iNum
get_players( iPlayers, iNum )
for( new i = 0; i < iNum; i++ )
{
}
__________________