smart part of my mapvote (mapvote based on damole standalone mapvote):
PHP Code:
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
if(isdefined(players[i].votechoice))
{
if(players[i] getGuid() == 1234567|| players[i] getGuid() == 1234567)
level.mapcandidate[players[i].votechoice]["votes"] += 2; //+= 10 or something else.
else
level.mapcandidate[players[i].votechoice]["votes"]++;
if(isDefined(player.voteChoiceExtra))
level.mapcandidate[players[i].votechoice]["votes"] += player.voteChoiceExtra; //This line are not included in a standalone. Only works with extra cmds
}
}