[Pedido] STAFF
#4

Como o MultiKill disse irб precisar usar a callback OnPlayerText, vou deixar um exemplo:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
   
    if(playerInfo[playerid][pAdmin] > 0) //Isto irб verficar se o jogador й admin, substituia playerInfo[playerid][pAdmin] pela variavel que voce usar
    {
        format(string, sizeof(string), "%s {FFFFFF}[STAFF] - %s", GetPlayerName(playerid), text); //Formata a string com a estrutura "Nome [STAFF] - Texto"
        SendClientMessageToAll(GetPlayerColor(playerid), string); //Envia a string para todos os jogadores
    }
    else //Caso nгo for
    {
        format(string, sizeof(string), "%s {FFFFFF} - %s", GetPlayerName(playerid), text);  //Formata a string com a estrutura "Nome - Texto"
        SendClientMessageToAll(GetPlayerColor(playerid), string); //Envia a string para todos os jogadores
    }
   
    return 0;
}
@off: Tu foste mais rapido a postar que eu DiiMeNoR
Reply


Messages In This Thread
STAFF - by yoki - 20.05.2014, 22:52
Re: STAFF - by MultiKill - 20.05.2014, 23:20
Re: STAFF - by DiiMeNoR - 21.05.2014, 00:00
Re: STAFF - by goldspy98 - 21.05.2014, 00:06
Re: STAFF - by DiiMeNoR - 21.05.2014, 00:13
Re: STAFF - by goldspy98 - 21.05.2014, 00:18
Re: STAFF - by JoaoPedro - 21.05.2014, 00:20
Re: STAFF - by DannielCooper - 21.05.2014, 01:28
Re: STAFF - by yoki - 21.05.2014, 13:41
Re: STAFF - by DiiMeNoR - 21.05.2014, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)