I'm pretty new to SourcePawn and the menu system. What I'm trying to do is to create a campaign vote menu for L4D2, but show the vote progress in the same menu. Basically:
Code:
if( g_votes[i] > 0 )
FormatEx( info, sizeof info, "%s (%d votes)", g_campaignName[i], g_votes[i] )
else
FormatEx( info, sizeof info, "%s", g_campaignName[i] )
AddMenuItem( menu, i, g_campaignName[i] )
My problem is, in what way should I re-display the menu to clients that have already voted? Should I just keep doing VoteMenuToAll() every time a new client votes, and use a bool to check if a client has already voted in MenuAction_Select, if he has, return Plugin_Handled?