PHP Code:
public Cmd_EndVote(id) {
new maxvote = max(szNoScope, max(szNormal, max(szGravity, szVip)))
if (szNoScope == maxvote) {
Cmd_NoScope(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else if (szNormal == maxvote) {
Cmd_Normal(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else if (szGravity == maxvote) {
Cmd_HigherGravity(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
} else { // implied that szVip is max
Cmd_KillVip(id)
ColorChat(id, GREEN, "[%s]^1 The vote has ended!", szPrefix)
}
}
It's printing the message, but it ain't starting the game... Should i loop trough something?
__________________