[Ajuda] Cor diferente do texto no chat e Tag [Owner]
#4

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
PHP код:
public OnPlayerText(playeridtext[])
{
    new 
TColor[110], chatName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridchatNamesizeof(chatName));
    static 
LastPrivmsg[MAX_PLAYERS][128];
    if(
strfind(LastPrivmsg[playerid], textfalse) != -1) return ShowPlayerDialog(playerid84DIALOG_STYLE_MSGBOX"  ""{FF5F22}ERROR!, {FFFFFF}No escribas lo mismo repetitivamente.""Ok"""), 0;
    
strmid(LastPrivmsg[playerid], text0strlen(text), sizeof(LastPrivmsg[]));
    for(new 
1MAX_CHAT_LINES-1i++) Chat[i] = Chat[i+1];
    
format(TColorsizeof(TColor), "%s{%06x}%s {FFFFFF}(%d): {FFFFFF}%s"PlayerInfo[playerid][Level] >= ? ("{ff0000}[Owner] ") : (""), GetPlayerColor(playerid) >>> 8chatNameplayeridtext);
    
SendClientMessageToAll(GetPlayerColor(playerid), TColor);
    
SetPlayerChatBubble(playerid,text,0xFFFFFFAA100.010000);
    return 
0;

Funcionou, muito obrigado seu madroga +REP

Aproveitando o embalo, sabe como eu faзo pra tirar ou aumentar o limite caracteres no chat? Pois ta muito curto e fica cortando as mensagens quando atinge o limite, e eu nгo sei onde fica isso de limite pra arrumar.
Reply


Messages In This Thread
Cor diferente do texto no chat e Tag [Owner] - by dittmannlucas - 26.04.2018, 05:35
Re: Cor diferente do texto no chat e Tag [Owner] - by arakuta - 26.04.2018, 11:08
Re: Cor diferente do texto no chat e Tag [Owner] - by [BOPE]Seu._.Madruga - 26.04.2018, 19:54
Re: Cor diferente do texto no chat e Tag [Owner] - by dittmannlucas - 26.04.2018, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)