Hola gente
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetTimer("CambiarLugar", 5000, 1);
return 1;
}

forward CambiarLugar(playerid);
public CambiarLugar(playerid)
{
    new RandomCheckpoint = random(7); // El nъmero 7 es la cantidad de Checkpoint's random.
        switch(RandomCheckpoint )
        {
            case 0: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 1: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 2: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 3: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 4: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 5: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
            case 6: SetPlayerCheckpoint(playerid, PosZ, PosY, PosZ);
        }
return 1;
}
Algo asн?.
Reply


Messages In This Thread
Hola gente - by DangerStoring - 06.09.2013, 20:51
Respuesta: Hola gente - by Swedky - 06.09.2013, 22:06
Re: Hola gente - by DangerStoring - 06.09.2013, 22:50
Respuesta: Hola gente - by DesingMyCry - 06.09.2013, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)