15.06.2017, 04:15
Como puedo hacer que cada 30 minutos se realice una acciуn con 1 jugador al azar de todos los conectados en el servidor? alguna ayuda?
new totJugadores = GetPlayerPoolSize(), RID;
RID = random(totJugadores);
if(IsPlayerConnected(RID))
{
// Acciуn a realizar
}
stock RandomTank()
{
new count = 0;
new Random = Iter_Random(Player);
foreach(Player, i)
{
if(gTeam[i] == TEAM_HUMANOS) count++;
if(count == Iter_Count(Player))
{
ZombieSetting(Random);
}
}
return 1;
}