SetTimer("MudarCenario", 900000, 1);
//MudarCenario = Nome da Funзгo.
//900000 = 15 minutos convertidos em milissegundos.
forward MudarCenario();
public MudarCenario()
{
for(new i; i < MAX_PLAYERS; i++)
{
SetPlayerPos
SetPlayerInterior
}
return 1;
}
PHP код:
SetPlayerPos |
if(!strlen(inputtext) <8)
Mas ele ai nгo pega numa arena aliatoria e nгo faz o spawn nos spawns da arena..
pawn Код:
|
forward MudarCenario();
public MudarCenario()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(VariavelPassar[playerid] == 0) // Primeiro Cenбrio
{
SetPlayerPos
SetPlayerInterior
SetTimer("MudarCenario", 900000, 1); // Inicie novamente uma contagem ( Tem outros modos de fazer )
}
else if(VariavelPassar[playerid] == 1) // Segundo Cenбrio
{
SetPlayerPos
SetPlayerInterior
}
}
return 1;
}
new Float:ArenaRandom[3][3] = {
{coordenadas da arena 1 (x,y,z)},
{coordenadas da arena 2 (x,y,z)},
{coordenadas da arena 3 (x,y,z)}
};
forward MudarCenario();
public MudarCenario()
{
new asd = random(sizeof(ArenaRandom));
SetPlayerPos(playerid, ArenaRandom[asd][0], ArenaRandom[asd][1], ArenaRandom[asd][2], ArenaRandom[asd][3]);
}
forward MudarArena();
public MudarArena()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(VariavelPassar[playerid] == 0) // Linha 485
{
new Float:ArenaSpawns[][] =
{
{-1513.3469,2536.8325,55.6875,46.0863},
{-1534.5206,2543.3533,55.8359,64.1873},
{-1537.3022,2560.8057,55.8359,9.9801},
{-1537.1564,2592.4919,55.8359,347.1066},
{-1552.3397,2600.5630,55.8359,36.6137},
{-1523.5328,2608.2029,55.8359,289.7661},
{-1489.5654,2607.8162,55.8359,291.6460},
{-1479.0426,2595.0493,55.8359,39.5787},
{-1460.0007,2619.5195,58.7734,152.6931},
{-1435.4955,2608.3745,55.8359,274.4125},
{-1420.5632,2613.4656,55.8359,146.4264},
{-1414.7498,2594.2373,55.8403,51.7988},
{-1458.2444,2641.4443,55.8359,38.4703},
{-1476.6389,2661.3892,55.8359,56.9571},
{-1507.6934,2663.9001,55.8359,81.7107},
{-1528.0374,2677.3118,55.8359,171.7108},
{-1562.5850,2662.7412,55.8359,349.1795},
{-1539.6945,2623.1128,55.8359,196.7286},
{-1513.9823,2594.6506,55.8359,279.3923}
};
SetPlayerPos
SetPlayerInterior
SetTimer("MudarCenario", 900000, 1); // Inicie novamente uma contagem ( Tem outros modos de fazer )
}
else if(VariavelPassar[playerid] == 1) // Segundo Cenбrio
{
SetPlayerPos
SetPlayerInterior
}
}
return 1;
}
(485)error 017: undefined symbol "VariavelPassar" (485) : error 017: undefined symbol "playerid" (485) : error 029: invalid expression, assumed zero (485) : fatal error 107: too many error messages on one line