Quote:
Originally Posted by laborgward
Quote:
Originally Posted by CristianTdj
Quote:
Originally Posted by angel-laam
Код:
public OnPlayerSpawn(playerid)
{
new randomspawn = random(8);
switch(randomspawn)
{
case 0: SetPlayerPos(playerid, X, Y, Z);
case 1: SetPlayerPos(playerid, X, Y, Z);
case 2: SetPlayerPos(playerid, X, Y, Z);
case 3: SetPlayerPos(playerid, X, Y, Z);
case 4: SetPlayerPos(playerid, X, Y, Z);
case 5: SetPlayerPos(playerid, X, Y, Z);
case 6: SetPlayerPos(playerid, X, Y, Z);
case 7: SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}
Usa ese ami me sirvio
|
Pero lo que tu dices es por si hay 8 jugadores.
|
claro esas son los sppawns para cada skin y yo lo q busco es q todos los skins spawneen en todos los lugares :S
pero no me funciona nose q le pasara ya explike q e s lo q susede
|
En el numero 8 tienes qe cambiar el numero de cordenadas qe pongas
por ejemplo si pones 15 cordenadas distintas pones
Код:
new randomSpawn = random(15);
y ya pones los case
Код:
case 0: SetPlayerPos(playerid, X, Y, Z);
case 1: SetPlayerPos(playerid, X, Y, Z);
case 2: SetPlayerPos(playerid, X, Y, Z);
case 3: SetPlayerPos(playerid, X, Y, Z);
case 4: SetPlayerPos(playerid, X, Y, Z);
case 5: SetPlayerPos(playerid, X, Y, Z);
case 6: SetPlayerPos(playerid, X, Y, Z);
case 7: SetPlayerPos(playerid, X, Y, Z);
case 8: SetPlayerPos(playerid, X, Y, Z);
case 9: SetPlayerPos(playerid, X, Y, Z);
case 10: SetPlayerPos(playerid, X, Y, Z);
case 11: SetPlayerPos(playerid, X, Y, Z);
case 12: SetPlayerPos(playerid, X, Y, Z);
case 13: SetPlayerPos(playerid, X, Y, Z);
case 14: SetPlayerPos(playerid, X, Y, Z);
y este funciona con todos los Skins cualkier skin aparece en distintos lugares al morir y al entrar atu server
Код:
public OnPlayerSpawn(playerid)
{
new randomspawn = random(15);
switch(randomspawn)
{
case 0: SetPlayerPos(playerid, X, Y, Z);
case 1: SetPlayerPos(playerid, X, Y, Z);
case 2: SetPlayerPos(playerid, X, Y, Z);
case 3: SetPlayerPos(playerid, X, Y, Z);
case 4: SetPlayerPos(playerid, X, Y, Z);
case 5: SetPlayerPos(playerid, X, Y, Z);
case 6: SetPlayerPos(playerid, X, Y, Z);
case 7: SetPlayerPos(playerid, X, Y, Z);
case 8: SetPlayerPos(playerid, X, Y, Z);
case 9: SetPlayerPos(playerid, X, Y, Z);
case 10: SetPlayerPos(playerid, X, Y, Z);
case 11: SetPlayerPos(playerid, X, Y, Z);
case 12: SetPlayerPos(playerid, X, Y, Z);
case 13: SetPlayerPos(playerid, X, Y, Z);
case 14: SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}