06.09.2013, 22:06
(
Последний раз редактировалось Swedky; 08.09.2013 в 21:41.
)
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;
}