Problem And A Question
#1

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
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;
}
Thanks, Cody Beer
Reply
#2

That with the color thing isnt possible (with the long text before the colon)

and just do return 0 at the end (this will stop showing the normal message)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)