SA-MP Forums Archive
Playerid behind name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Playerid behind name (/showthread.php?tid=313831)



Playerid behind name - geerdinho8 - 27.01.2012

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


geerdinho8: (id 0) test
Will appear


Re: Playerid behind name - Konstantinos - 27.01.2012

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
}



Re: Playerid behind name - geerdinho8 - 27.01.2012

Thanks a lot Dwane,