[DUDA] Funcion
#1

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?
Reply
#2

No sй si te refieres a esto:
pawn Код:
new totJugadores = GetPlayerPoolSize(), RID;
RID = random(totJugadores);
if(IsPlayerConnected(RID))
{
    // Acciуn a realizar
}
Reply
#3

me toco hacerlo xd
Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)