[Ajuda] Pequena ajuda sobre o chat global
#1

Como fasso para que quando o player falar algo no chat global, aparecer o id dele do lado do nick?

Ex:

Biilo [22]: Olб fуrum SA-MP.

OBS: O 22 й o id.
Reply
#2

Usa a callback OnPlayerText.

pawn Код:
new msg[128], player[24];
GetPlayerName(playerid,player,24);
format(msg,sizeof msg,"%s[%i]: {FFFFFF}%s",player,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),msg);
// e no final da callbCK
return 0; // coloca return 0 pra msg nao sai duplicada
Reply
#3

Quote:
Originally Posted by Biilo
Посмотреть сообщение
Como fasso para que quando o player falar algo no chat global, aparecer o id dele do lado do nick?

Ex:

Biilo [22]: Olб fуrum SA-MP.

OBS: O 22 й o id.
posta sua OnPlayerText
Reply
#4

Quote:
Originally Posted by arakuta
Посмотреть сообщение
Usa a callback OnPlayerText.

pawn Код:
new msg[128], player[24];
GetPlayerName(playerid,player,24);
format(msg,sizeof msg,"%s[%i]: {FFFFFF}%s",player,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),msg);
// e no final da callbCK
return 0; // coloca return 0 pra msg nao sai duplicada
Obrigado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)