SA-MP Forums Archive
[Pedido] [FILTERSCRPT] [FS] GLOBALL CHAT - 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] [FILTERSCRPT] [FS] GLOBALL CHAT (/showthread.php?tid=535575)



[FILTERSCRPT] [FS] GLOBALL CHAT - BHTMestre - 04.09.2014

eae pessoal blz ? eu gostaria de saber se teria alguma fs de globall chat para servidor de samp dayz por ex : /globall [texto] se tiverem ai preciso muito obg


Re: [FILTERSCRPT] [FS] GLOBALL CHAT - best95 - 04.09.2014

se for para ADM,use o CMD:ASAY tem varios sistemas de admin com esse comando й tipo um anuncio no global chat!
se й isso que vc precisa..foi oque entendi.


Re: [FILTERSCRPT] [FS] GLOBALL CHAT - Macintosh - 04.09.2014

Como vocк quer? Que algum administrador digite /global e o chat se transforme em global, e se digitar novamente o comando, desative-o?


Re: [FILTERSCRPT] [FS] GLOBALL CHAT - BHTMestre - 05.09.2014

Quote:
Originally Posted by Macintosh
Посмотреть сообщение
Como vocк quer? Que algum administrador digite /global e o chat se transforme em global, e se digitar novamente o comando, desative-o?
esqueci de explicar detalhadamente malz mais eu quero para usuario e que meu servidor e de dayz e nao da pra falar no globall ai eu quero assim no global ajudem ai pf


Re: [FILTERSCRPT] [FS] GLOBALL CHAT - ViniBorn - 05.09.2014

Seria mais ou menos assim
pawn Код:
//Topo
new bool:ChatGlobal[MAX_PLAYERS];

//OnPlayerConnect
ChatGlobal[playerid] = false;

//Ativar/desativar chat
CMD:chatglobal(playerid)
{
    if(ChatGlobal[playerid])
    {
        ChatGlobal[playerid] = false;
        SendClientMessage(playerid, -1, "Chat global desativado");
    }
    else
    {
        ChatGlobal[playerid] = true;
        SendClientMessage(playerid, -1, "Chat global ativado");
    }
    return true;
}

//Usar chat
CMD:global(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "/global [Mensagem]");
    if(!ChatGlobal[playerid]) return SendClientMessage(playerid, -1, "Seu chat global estб desativado");

    SendClientMessageToAll(-1, params);
    return true;
}



Re: [FILTERSCRPT] [FS] GLOBALL CHAT - BHTMestre - 05.09.2014

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Seria mais ou menos assim
pawn Код:
//Topo
new bool:ChatGlobal[MAX_PLAYERS];

//OnPlayerConnect
ChatGlobal[playerid] = false;

//Ativar/desativar chat
CMD:chatglobal(playerid)
{
    if(ChatGlobal[playerid])
    {
        ChatGlobal[playerid] = false;
        SendClientMessage(playerid, -1, "Chat global desativado");
    }
    else
    {
        ChatGlobal[playerid] = true;
        SendClientMessage(playerid, -1, "Chat global ativado");
    }
    return true;
}

//Usar chat
CMD:global(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "/global [Mensagem]");
    if(!ChatGlobal[playerid]) return SendClientMessage(playerid, -1, "Seu chat global estб desativado");

    SendClientMessageToAll(-1, params);
    return true;
}
ai amigo eu nao to conseguindo colocar me ajuda ? skype : ribeirinho225