[Ajuda] Chat
#1

Olб galera do fуrum, queria saber como posso mudar a cor do chat, mais sem utilizar o {FFFFF}

code:

public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && PlayerInfo[playerid][pPlayer] >= 1)
{
format(String, sizeof(String), "[CHAT PLAYER] %s (%i):{FFFFFF}%s", Nome(playerid), playerid , text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pPlayer] >= 1)
{

SendClientMessage(i,GetPlayerColor(playerid), String);
}
}
}
printf(String);
return 0;
}
return 1;
}
Reply
#2

Parametro para cor aki
----------------------------\/
SendClientMessage(i,GetPlayerColor(playerid), String);
Reply
#3

Quote:
Originally Posted by Day_
Посмотреть сообщение
Parametro para cor aki
----------------------------\/
SendClientMessage(i,GetPlayerColor(playerid), String);
ACONTECE QUE QUANDO MUDO AI DA ERRO
Reply
#4

pawn Код:
new gps = GetPlayerColor(playerid);
SendClientMessage(i, gpc, String);
Reply
#5

Quote:
Originally Posted by focaximubh
Посмотреть сообщение
pawn Код:
new gps = GetPlayerColor(playerid);
SendClientMessage(i, gpc, String);
nгo funcionou
Reply
#6

vocк quer que mande a mensagem com a cor do player que mandou ? explique qual a ideia...

testa
PHP код:
public OnPlayerText(playeridtext[]){
    if(
text[0] == '!' && PlayerInfo[playerid][pPlayer] >= 1){
        
format(Stringsizeof(String), "[CHAT PLAYER] %s (%i):{%06x}%s"Nome(playerid), playerid ,  GetPlayerColor(playerid) >>> 8text[1]);
        
        for(new 
0MAX_PLAYERS++){
            if(
IsPlayerConnected(i)){
                if(
PlayerInfo[i][pPlayer] >= 1)
                {
                    
SendClientMessage(i, -1String);
                }
            }
        }
        
printf(String);
        return 
0;
    }
    return 
1;

Reply
#7

Poste o erro tambйm, se for possнvel.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)