Ta certo ? -
rCr - 20.04.2013
Para que quando um player digitar alguma coisa, aparecer assim Exemplo :
rCr Diz: eae
Entendem ? Botar o Diz na frente .
To fazendo assim , mais nгo sei se ta certo .
pawn Код:
public OnPlayerText(playerid, text[])
{
new Str[120];
format(Str, sizeof(Str), "%s Diz:", text);
return 1;
}
Re: Ta certo ? -
steki. - 20.04.2013
Sу falta enviar a mensagem.
Re: Ta certo ? -
rCr - 20.04.2013
Й isso que eu nгo sei fazer .
SendClientMessage ?
nem tem lуgica .
Re: Ta certo ? -
Strike_Legends - 20.04.2013
Код:
public OnPlayerText(playerid, text[])
{
new Str[120];
format(Str, sizeof(Str), "%s Diz:", text);
SendClientMessageToAll(playerid, 0x000000FF, str);
return 1;
}
Re: Ta certo ? -
PT - 20.04.2013
Ola
so falta como o steki. disse enviar e mensagem fica assim;
pawn Код:
public OnPlayerText(playerid, text[])
{
new Str[120];
format(Str, sizeof(Str), "%s Diz:", text);
SendClientMessageToAll(0xFFFFFFAA, Str); // 0xFFFFFFAA e a cor neste caso й branco
return 1;
}
PT
Re: Ta certo ? -
rCr - 20.04.2013
To fazendo com SendClientMessageToAll, mais ta repetindo o que o player fala .
Se eu falar : hnasodhias
Aparece
hnasodhias Diz:
Yamaha: hnasodhias
Re: Ta certo ? -
smiiir - 20.04.2013
PHP код:
public OnPlayerText(playerid, text[])
{
static
xCelulas [ 120 ],
xNick [ 24 ]
;
GetPlayerName ( playerid, xNick, 24 ) ;
format ( xCelulas, sizeof ( xCelulas ), "%s Diz: %s", xNick, text ) ;
SendClientMessageToAll ( 0xFFFFFFAA, xCelulas ) ;
return 0;
}
Re: Ta certo ? -
rCr - 20.04.2013
Vou tentar fazer assim agora :
pawn Код:
public OnPlayerText(playerid, text[])
{
new Str[120];
format(Str, sizeof(Str), "%s Diz:", text);
SendClientMessage(playerid, GetPlayerColor(playerid), Str);
return 1;
}
Re: Ta certo ? -
DevilAgain - 20.04.2013
Testa ae, com ID
pawn Код:
new string[120];
format(string,sizeof(string),"[%d] Diz:{FFFFFF}: %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
Re: Ta certo ? -
PT - 20.04.2013
Tenta assim
pawn Код:
public OnPlayerText(playerid, text[])
{
new Str[120];
format(Str, sizeof(Str), "Diz: %s", text);
SendClientMessageToAll(0xFFFFFFAA, Str); // 0xFFFFFFAA e a cor neste caso й branco
return 1;
}
PT