OnVotePassed Hook

Description

When the vote has passed
HookReturnCode OnVotePassed(const string& in strType, int& in iVoteOption, string& out strPassedString, string& out strExecuteCommand)

Parameters

const string& in strType

vote type

int& in iVoteOption

The vote that won

string& out strPassedString

The passed string, can be anything.

string& out strExecuteCommand

Will execute a server command after the vote has passed

Hook Register

Events::Vote::OnVotePassed.Hook( @OnVotePassed );