SA-MP Forums Archive
[Pedido] Funзгo server full - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Funзгo server full (/showthread.php?tid=511562)



Funзгo server full - billygod - 06.05.2014

Queria setar um timer no ongamemodeinit de tanto em tanto tempo pra checar se o servidor estiver full kickar todos online com a variavel Presos[playerid] == 1


Re: Funзгo server full - VeNuZ_ - 06.05.2014

pawn Код:
new QConectados;

OnPlayerConnect
QConectados++;
if(QConectados == GetMaxPlayers())
{
for(new i = 0; i <= GetMaxPlayers(); i++)
if(Presos[i] == 1)
Kick(i);
//Funзгo
}
OnPlayerDisconnect
QConectados--;