SA-MP Forums Archive
Chat Message Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Chat Message Help (/showthread.php?tid=598476)



Chat Message Help - KillerStrike23 - 13.01.2016

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!


Re: Chat Message Help - BiosMarcel - 13.01.2016

just put return 0; at the end of onPlayerText


Re: Chat Message Help - KillerStrike23 - 13.01.2016

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