Chat Message Help
#1

so i created a chat message to show player id when he speaks
pawn Код:
new string[128]; GetPlayerName(playerid,string,sizeof(string));
    format(stringbig,sizeof(stringbig),"{%06x}%s{FFFFFF}(%d): %s",GetPlayerColor(playerid) >>> 8,string,playerid, text);
    SendClientMessageToAll(GetPlayerColor(playerid),stringbig);
    format(stringbig,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
    SetPlayerChatBubble(playerid,stringbig,MESSAGE_COLOR,35.0,10000);
but i got a problem here it sends two messages one of them includes the id and the other one is not so i need to stop the default one from showing up out there ! thanks in advance!
Reply
#2

just put return 0; at the end of onPlayerText
Reply
#3

oh yeah i forgot to do it +rep for ya bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)