SA-MP Forums Archive
[PEDIDO]Torre De Controle - 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: [PEDIDO]Torre De Controle (/showthread.php?tid=332980)



[PEDIDO]Torre De Controle - gcoder - 09.04.2012

Bom , Eu quero ajuda de alguem pra poder criar um codigo e colocar no meu gm que permita a pessoa estar na TORRE de Controle ! Por Exemploo.. Estou no Ruslter e Vo Decolar do AEROLV destino AEROLS ! Ai eu escrevo /torre [TORRE][GA-123 ( Identificaзao da aeronave) Decolando de AEROLV Destino AEROLS ] E Que esse texto aparece em Destaque como por exemplo se fosse um /say !

Qualquer Coisa Explico Melhor depois !


Re: [PEDIDO]Torre De Controle - Đeagle - 09.04.2012

https://sampwiki.blast.hk/wiki/Function:...ntMessageToAll


Re: [PEDIDO]Torre De Controle - gcoder - 09.04.2012

Se Alguem poder colocar um codigo agradeзo


Re: [PEDIDO]Torre De Controle - Abravanel - 09.04.2012

Isso?
pawn Код:
CMD:torre(playerid, params[])
{
    new Aero1, Aero2, msg[128];
    if(sscanf(params,"s[10]s[10]",Aero1,Aero2)) return SendClientMessage(playerid,-1,"CORRECT SYNTAX: /torre [Em que Aero vocк estб][Em que Aero vocк vai]");
    format(msg,128,"[TORRE][GA-123] ( Identificaзao da aeronave ) Decolando de %s destino %s ]",Aero1, Aero2);
    SendClientMessageToAll(0xF60000AA, msg);
    return true;
}



Re: [PEDIDO]Torre De Controle - @Riichard - 09.04.2012

Creio que seja mais ou menos assim :
pawn Код:
if(strcmp(cmdtext, "/say", true) == 0) {
        new playerstate = GetPlayerState(playerid);
        if(playerstate == PLAYER_STATE_DRIVER)
{
if(!cmdtext[3])return SendClientMessage(playerid, -1, "USE: /Say [texto]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[TORRE] %s (Na Aeronave) %s", str, cmdtext[4]);
SendClientMessageToAll(-1, str);
}
        else {
           return SendClientMessage(playerid, -1, "Vocк nгo estб em em veiculo!");
        }
    }
    return 0;
}
Pra definir os veiculos
terб q definir ali em cima..
estou sem o code '-'