Talk:Left 4 Voting 2
Revision as of 21:23, 12 June 2013 by Dr. Greg House (talk | contribs) (Use a hook into "VoteRegistered" instead of hooking the vote command?)
Wouldn't it be a better idea to hook the user message "VoteRegistered" and use const players[] (which length would be 1 and would contain the userid or clientid(?)) to determine which player did the vote? This would be more accurate than parsing the vote command and filtering out who has already voted since "VoteRegistered" would only be sent when the vote was actually accepted and not when someone attempts to vote (again or isn't allowed to).