MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / IsClientInVotePool

Method IsClientInVotePool

core/MenuVoting.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool VoteMenuHandler::IsClientInVotePool(int client)
237{
238 if (client < 1
239 || client > g_Players.MaxClients()
240 || m_pCurMenu == NULL)
241 {
242 return false;
243 }
244
245 return (m_ClientVotes[client] > VOTE_NOT_VOTING);
246}
247
248bool VoteMenuHandler::GetClientVoteChoice(int client, unsigned int *pItem)
249{

Callers 2

IsClientInVotePoolFunction · 0.45
RedrawClientVoteMenuFunction · 0.45

Calls 1

MaxClientsMethod · 0.45

Tested by

no test coverage detected