Playerid behind name
#1

When someone types something, for example geerdinho8, i want his playerid, behind his name like:
geerdinho8 types "test".


geerdinho8: (id 0) test
Will appear
Reply
#2

Read the wiki before you post/ask something.
You will need to custom it and return 0.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
Reply
#3

Thanks a lot Dwane,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)