Hey averatec, can I edit your code and release here? cuz of I've added a few interesing things + using js, you can configure what level can vote at poll, you can "execute" a player from voting, and better % showing [in bars].
$level = 10; // need level to vote
/* Checking Account */
$account_players = $account_logged->getPlayers();
foreach($account_players as $player)
{
$player = $player->getLevel();
if($player >= $level)
$allow=true;
}
I will release new version tomorrow, but checking level is in script
Code:$level = 10; // need level to vote /* Checking Account */ $account_players = $account_logged->getPlayers(); foreach($account_players as $player) { $player = $player->getLevel(); if($player >= $level) $allow=true; }
alright, but thats just one feathure, will you add showing percents at graphics bars?
Another bug: (I think it was introduced in the latest version )