[Ajuda] Tag antes do Nick
#1

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);
}
Reply
#2

pawn Код:
SendPlayerMessageToAll(playerid, String);
tentou substituir por

pawn Код:
SendClientMessageToAll
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);
}
Reply
#3

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
pawn Код:
SendPlayerMessageToAll(playerid, String);
tentou substituir por

pawn Код:
SendClientMessageToAll
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)