Dъvida.
#8

sei porque, ele deve estar renascendo na fazendo nй?
Код:
    if(informacoes[playerid][profissao] == desempregado)
    {
        SetPlayerColor(playerid, 0xFFFFFFFF);

        if (iniciante[playerid] == true)
        {
            if (informacoes[playerid][sexo] == masculino)
            {
                SetPlayerSkin(playerid, 23);
                return 1;
            }
            
            if (informacoes[playerid][sexo] == feminino)
            {
                SetPlayerSkin(playerid, 56);
                return 1;
            }
            
            SetPlayerPos(playerid, -1752.5930, 961.8002, 24.8828);
            SetPlayerFacingAngle(playerid, 180.000);
            SetCameraBehindPlayer(playerid);
            iniciante[playerid] = false;
        }
    }
Observando essa parte, o player deve atender todas as condiзхes para nascer em (-1752.5930, 961.8002, 24.882
Ele deve ser desempregado e iniciante, porem logo depois do primeiro spawn no (-1752.5930, 961.8002, 24.882 o player deixa de ser iniciante: iniciante[playerid] = false;
A partir dai ele nao atende a condiзгo:

if (iniciante[playerid] == true)

Pra ficar correto acho q vc tem q usar a funзгo:

SetPlayerPos(playerid, -1752.5930, 961.8002, 24.882;

Fora dos cochetes da condiзгo: iniciante[playerid] == true

Espero ter-lo ajudado, e tenho ctz q o problema deve ser esse...
Reply


Messages In This Thread
Dъvida. - by Domozinho - 22.01.2011, 00:03
Re: Dъvida. - by [FeK]Knife - 22.01.2011, 00:14
Re: Dъvida. - by Domozinho - 22.01.2011, 00:25
Re: Dъvida. - by ManoLexuS - 22.01.2011, 00:29
Re: Dъvida. - by LuaN_ - 22.01.2011, 00:52
Re: Dъvida. - by [FeK]Knife - 22.01.2011, 00:54
Re: Dъvida. - by Domozinho - 22.01.2011, 11:12
Re: Dъvida. - by bruno_orlandi - 22.01.2011, 13:06
Re: Dъvida. - by Domozinho - 22.01.2011, 13:14
Re: Dъvida. - by bruno_orlandi - 22.01.2011, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)