(24/12/2021 01:41)xbruno1000x Escreveu: Agora sim você mandou o que eu tava procurando kkkkkkk
Eu imagino que o problema seja que o spawn random seja chamado antes do spawn vip, então é necessário condiciona-las.
Teste assim:
Código:if(PlayerInfo[playerid][VipLevel] == 0)
{
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
} else {
SetPlayerPos(playerid, ContaPlayer[playerid][UltimaPosX], ContaPlayer[playerid][UltimaPosY], ContaPlayer[playerid][UltimaPosZ]);
}
Coloquei assim:
ONPLAYERSPAWN
Código PHP:
new rand = random(sizeof(RandomSpawn));
if(PlayerInfo[playerid][VipLevel] == 0)
{
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
} else {
SetPlayerPos(playerid, ContaPlayer[playerid][UltimaPosX], ContaPlayer[playerid][UltimaPosY], ContaPlayer[playerid][UltimaPosZ]);
}
Erros:
Código PHP:
error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line