[Ajuda] Tag antes do Nick - 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: [Ajuda] Tag antes do Nick (
/showthread.php?tid=549871)
Tag antes do Nick - BWCALLEf - 09.12.2014
galera estou tentando fazer a tag antes do nick ,
fiz do modo abaixo mas repete o Nick exemplo Nick:[Scripter]Nick[ID]: textoo
acho que a callback ja geta o nick nгo й? como arrumo
pawn Код:
if( Variavel[playerid] == 5 )
{
GetPlayerName(playerid, Nome, sizeof (Nome));
format(String, sizeof (String), "{4876FF}[Scripter] {696969}%s[%d]: {F8F8FF}%s", Nome, playerid, text);
SendPlayerMessageToAll(playerid, String);
}
Re: Tag antes do Nick -
Sky™ - 09.12.2014
pawn Код:
SendPlayerMessageToAll(playerid, String);
tentou substituir por
pois acho que o nome do player й padrгo da funзгo ...
caso nгo funcione tente:
pawn Код:
if( Variavel[playerid] == 5 )
{
GetPlayerName(playerid, Nome, sizeof (Nome));
format(String, sizeof (String), "{4876FF}[Scripter] {696969}%s[%d]: {F8F8FF}%s", Nome, playerid, text);
SendChatMessageAll(String);
}
forward SendChatMessageAll(string[]);
public SendChatMessageAll(string[]){
if(IsPlayerConnected(playerid)) SendClientMessageToAll(-1, string);
}
Re: Tag antes do Nick - BWCALLEf - 09.12.2014
Quote:
Originally Posted by Sky_.
pawn Код:
SendPlayerMessageToAll(playerid, String);
tentou substituir por
pois acho que o nome do player й padrгo da funзгo ...
caso nгo funcione tente:
pawn Код:
if( Variavel[playerid] == 5 ) { GetPlayerName(playerid, Nome, sizeof (Nome)); format(String, sizeof (String), "{4876FF}[Scripter] {696969}%s[%d]: {F8F8FF}%s", Nome, playerid, text); SendChatMessageAll(String); }
forward SendChatMessageAll(string[]); public SendChatMessageAll(string[]){ if(IsPlayerConnected(playerid)) SendClientMessageToAll(-1, string); }
|
Funcionou Obrigado. +REP