SA-MP Forums Archive
Ajudinha! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Ajudinha! (/showthread.php?tid=202562)



Ajudinha! - Chavequinho - 24.12.2010

Bom eu estou querendo por um comando de chamar um taxista, bem ainda estou construindo! Eu quero que quando o jogador digitar o comando aparece uma marca vermelha no mapa mostrando onde ele estб pros taxistas irem pegar ele, mas eu quero que o checkpoint sу seja mostrado pro taxista:

pawn Код:
if(strcmp(cmd, "/chamartaxi", true) == 0 && IsPlayerConnected(playerid))
{
    new string[256];
    format(string, sizeof(string), "O jogador {D2FFD0}%s{FFFFFF} precisa de um {FAFFA0}taxi{FFFFFF}.", sendername);
    mensagemprotaxista(0xFFFFFFFF, string);
    return 1;
}



Re: Ajudinha! - [Banido]HigorOliver - 24.12.2010

Qual a array dos taxista ?


Re: Ajudinha! - Chavequinho - 24.12.2010

pawn Код:
if(Profissao[playerid] == taxista)



Re: Ajudinha! - mafelis - 24.12.2010

I AI fico dificil <!> tenta

SetPlayerCheckpoint(id_do_Taxista, cordenada x jogador pedindo taxi, cordenada y jogador pedindo taxi, cooordenanada z jogador pedindo taxi, 3.0);


Re: Ajudinha! - [Banido]HigorOliver - 24.12.2010

pawn Код:
new Float:Cx,Float:Cy,Float:Cz;
                GetPlayerPos(playerid,Cx,Cy,Cz);
                for(new i; i <MAX_PLAYERS; i++) {
                        if(Profissao[i] == taxista){
                            SetPlayerCheckpoint(i, Cx,Cy,Cz, 6);

                    }
                }



Re: Ajudinha! - rjjj - 24.12.2010

Isto deve resolver o seu problema:

pawn Код:
if(strcmp(cmd, "/chamartaxi", true) == 0 && IsPlayerConnected(playerid))
{
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "O jogador {D2FFD0}%s{FFFFFF} precisa de um {FAFFA0}taxi{FFFFFF}.", sendername);
    mensagemprotaxista(0xFFFFFFFF, string);
    for(new x = 0; x <= MAX_PLAYERS; x++)
    {
        if(Profissao[x] == taxista)
        {
            SetPlayerMarkerForPlayer(x, playerid, 0xFFFF00AA);
        }
    }
    return 1;
}

Espero ter ajudado


Re: Ajudinha! - Chavequinho - 24.12.2010

Resolvido, obrigado a todos