21.05.2016, 11:23
So i got those OnPlayerText
and this is the CheckTag
*problems*
#Message sends Twice (Duplicate)
Color of tag
Orange color
______________________________
without tag
player name its black
so
can anyone figure out how can i fix the double message send
and removing black color
Код:
public OnPlayerText(playerid,text[]) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"%s {0000FF}: %s",CheckTAG(playerid),text); SendClientMessageToAll(GetPlayerColor(playerid),string); return 1; }
Quote:
CheckTAG(playerid) { new Nick[MAX_PLAYER_NAME + 1],string[55]; GetPlayerName(playerid,Nick,sizeof(Nick)); if(!strcmp(Nick,"[GC]",true,4)) { string = "{00FF00}[{FF0000}GC{00FF00}]"; strcat(string, Nick[4]); return string; } strcat(string,Nick); return string; } |
#Message sends Twice (Duplicate)
Color of tag
Orange color
______________________________
without tag
player name its black
so
can anyone figure out how can i fix the double message send
and removing black color