08.08.2009, 07:01
I got a problem with a code.
If the player has Disguise = 1,instead of sending the message like Unknown says: text.It sends it like
Unknown says: text
Real Name says: text.
It sends both the first and the second message.
Thanks in advance
Quote:
if (realchat) { if(gPlayerLogged[playerid] == 0) { return 0; } if(Disguise[playerid] == 1) { format(string, sizeof(string), "Unknown Says: %s",text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); } else if(Disguise[playerid] != 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says: %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5); return 0; } } |
Unknown says: text
Real Name says: text.
It sends both the first and the second message.
Thanks in advance