28.03.2010, 22:50
Hi, im trying to make a custom OnPlayerText where for example it would show like this
Cody Beer [Rank:"the rank"][ID]: your text, so far it works in making that the only problem i have is when i type it
Cody Beer [Rank:"the rank"][ID]: your text shows and and Cody Beer: your text also shows i need to make it so that it dosent show Cody Beer: your text, and a question, if my color is red i want it to appear like this Cody Beer[Rank:"your rank"][ID]: your text (The [Rank:"your rank"][ID]: your text would be white)
Tell me if you didnt understand what i said and also hears the code i have so far
Thanks, Cody Beer
Cody Beer [Rank:"the rank"][ID]: your text, so far it works in making that the only problem i have is when i type it
Cody Beer [Rank:"the rank"][ID]: your text shows and and Cody Beer: your text also shows i need to make it so that it dosent show Cody Beer: your text, and a question, if my color is red i want it to appear like this Cody Beer[Rank:"your rank"][ID]: your text (The [Rank:"your rank"][ID]: your text would be white)
Tell me if you didnt understand what i said and also hears the code i have so far
pawn Код:
public OnPlayerText(playerid, text[])
{
GetPlayerName(playerid, TextLine, sizeof(TextLine));
format(TextString, sizeof(TextString), "%s [Rank: %d][%d]: %s", TextLine, Rank[playerid], playerid, text);
SendClientMessage(playerid, GetPlayerColor(playerid), TextString);
return 1;
}