[Ajuda] Nгo ta, pq ?
#9

Quote:
Originally Posted by VeNuZ_
Посмотреть сообщение
default ponho case 1: depois noutra arena que eu adicione, case 2: etc certo ?
default fica no fim rs

pawn Код:
forward MudarArena(playerid);
public MudarArena(playerid)
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        new pt = random(2); // 2 numero de arenas
        switch(pt)
        {
            case 0:
            {
                rand = random(sizeof(SpawnA1));
                SetPlayerPos(playerid, SpawnA1[rand][0], SpawnA1[rand][1], SpawnA1[rand][2]);
                GetPlayerFacingAngle(playerid, SpawnA1[rand][3]);
                SetTimer("MudarArena", 900000, 1);
            }
            case 1:
            case 2:
            ....
            default:
            {
                rand = random(sizeof(SpawnA2));
                SetPlayerPos(playerid, SpawnA2[rand][0], SpawnA2[rand][1], SpawnA2[rand][2]);
                GetPlayerFacingAngle(playerid, SpawnA2[rand][3]);
                SetTimer("MudarArena", 900000, 1);
            }
        }
    }
    return 1;
}
nao esqueзe de mudar o numero de arena la em cima
Reply


Messages In This Thread
Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 19:41
Re: Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 21:00
Re: Nгo ta, pq ? - by PT - 13.09.2013, 21:07
Re: Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 21:17
Re: Nгo ta, pq ? - by PT - 13.09.2013, 21:20
Re: Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 21:32
Re: Nгo ta, pq ? - by PT - 13.09.2013, 21:38
Re: Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 21:40
Re: Nгo ta, pq ? - by PT - 13.09.2013, 21:42
Re: Nгo ta, pq ? - by VeNuZ_ - 13.09.2013, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)