SA-MP Forums Archive
[Ajuda] Chat Proximo - 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: [Ajuda] Chat Proximo (/showthread.php?tid=353916)



[Ajuda] Chat Proximo - Maklister - 24.06.2012

Ajuda,

Bom Meu CMD para o Player O Player Falar somente com quem esta Proximo ae ele nao esta funcionando corretamente ...

So esta aparecendo o Nome da Pessoa

pawn Код:
CMD:f(playerid, params[])
{
    new tmp[128], cmdtext[128];
    strmid(tmp, cmdtext, 3, strlen(cmdtext), 128);
    new Float:x,Float:y,Float:z;
    format(tmp, sizeof(tmp), " %s: %s", pNome, cmdtext);
    GetPlayerPos(playerid, x, y, z);
    for(new chatperto; chatperto < MAX_PLAYERS; chatperto++)
    {
        if(IsPlayerInRangeOfPoint(chatperto, 10.0, x, y, z))
        {
        SendClientMessage(chatperto, 0xFF8000AA, tmp);
        }
    }
    return 1;
}
й Nozes =D


Re: [Ajuda] Chat Proximo - ,Bridget - 25.06.2012

pawn Код:
#define COLOR_GREY 0xAFAFAFAA // Topo gamemode.
//=========================================
format(string, sizeof(string), "%s diz: %s", pNome, cmdtext);
ProxDetector(20.0, playerid,string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
Acho mais fбcil usar isso.


Re: [Ajuda] Chat Proximo - Maklister - 25.06.2012

Hun o Chat й Global ... Mas Pra quem ta Proximo o Player podera comversar privado ....

Tem como Arrumar o CMD que postei lб em cima ? /F [texto]


Re: [Ajuda] Chat Proximo - .FuneraL. - 25.06.2012

pawn Код:
CMD:f(playerid, params[])
{
    new Nome[24], String[128], Texto[128];
    if(sscanf(params, "s[128]", Texto)) return SendClientMessage(playerid, -1, "USO: /f [Texto]");
    GetPlayerName(playerid, Nome, 24);
    new Float:x,Float:y,Float:z;
    format(String, sizeof(String), "%s : %s", Nome, Texto);
    GetPlayerPos(playerid, x, y, z);
    for(new chatperto; chatperto < MAX_PLAYERS; chatperto++)
    {
        if(IsPlayerInRangeOfPoint(chatperto, 10.0, x, y, z))
        {
        SendClientMessage(chatperto, 0xFF8000AA, String);
        }
    }
    return 1;
}
Fiz rapidamente, Tente aн.


Re: [Ajuda] Chat Proximo - Maklister - 25.06.2012

+ REP DEU CERTO OBRIGADO