[Ajuda] Spawnar Cidade diferente
#1

Bom Dia rapaziada, tudo bem?

Rapaziada estou montando um SetSpawn, ou seja quando player Registrar/Logar ele vai spawnar na Cidade que o mesmo escolheu.
Segue meu Cуdigo:

PHP код:
SetPlayerSpawn(playerid)
{
    new 
file[50];
    
format(filesizeof(file), PASTA_CONTASPlayerName(playerid));
    
PlayerInfo[playerid][pSpawnCity] = DOF2_GetInt(file"SpawnCity");
    
PlayerInfo[playerid][pSpawnOrg] = DOF2_GetInt(file"SpawnOrg");
    
CarregarConta(playerid);
    if(
PlayerInfo[playerid][pSpawnCity] == 1)
    {
        if(
PlayerInfo[playerid][pSpawnOrg] == 1)
        {
            
SpawnPlayer(playerid);
        }
    }
    else
    {
        if(
PlayerInfo[playerid][pSpawnCity] == 2)
        {
            if(
PlayerInfo[playerid][pSpawnOrg] == 2)
            {
                
SpawnPlayer(playerid);
                
SetPlayerPos(playerid,  -2718.1245,-317.0169,7.8438);
            }
        }
    }

Sou novatгo e estou aprendendo, o problema й que nгo funcionou, independente da cidade escolhida no tutorial ele ainda spawn num lugar sу.
Como fazer isso dar certo?

Obrigado a todos desde jб.
Atenciosamente,
Matheus Dorado
Reply


Messages In This Thread
Spawnar Cidade diferente - by matheusdorado - 25.01.2017, 12:58
Re: Spawnar Cidade diferente - by johntrybescripter - 25.01.2017, 13:17
Re: Spawnar Cidade diferente - by matheusdorado - 25.01.2017, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)