Please help!
#1

i need when player write in a chat...or hangin on the server,i need to see after nickname the player id!
like this
[TOG]N[e]x("id")

Thnx
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string,sizeof(string),"(%d) %s",playerid,text);
    SendPlayerMessageToAll(playerid, string);
    return 0;
}
That is the easiest way.
It will show like this:
[ST]DutchBas: (0) Hello I said something
Reply
#3

Thank you!

But when i writin' somethhin' it's showin' twice:

Reply
#4

Did you remove return 0;?
Reply
#5

No
Reply
#6

That's strange, for me it works :/
Reply
#7

Do you know how to add id like this:

[TOG]N[e]x[ID:%]: text

cause i need the ID tobe in color like my nickname!
Reply
#8

You can do that, however, it will look like this if your name is for example red:
[ST]DutchBas[ID:5]: What you're saying
So the text won't be white anymore.
Reply
#9

Look here!
This i saw on one of russians servers:

i need it too!






P.S.
---------------------
---------------------
if u can help me just help here:
http://forum.sa-mp.com/index.php?topic=154545.0
Reply
#10

Oh well, I don't know how they did that then..
Reply
#11

It's pretty simple:
pawn Код:
public OnPlayerConnect(playerid)
{
  new
    pName[27];

  GetPlayerName(playerid, pName, 24);
  format(pName, 27, "%s[ID_%d]", pName, playerid);
  SetPlayerName(playerid, pName);
  return 1;
}
Reply
#12

Oh ofcourse. Never thought about that
Reply
#13

Thanks you!

But this on my server:

But on the server where:

The <tab menu> this:
Reply
#14

Quote:
Originally Posted by SAWC™
It's pretty simple:
pawn Код:
public OnPlayerConnect(playerid)
{
  new
    pName[27];

  GetPlayerName(playerid, pName, 24);
  format(pName, 27, "%s[ID_%d]", pName, playerid);
  SetPlayerName(playerid, pName);
  return 1;
}
Why OnPlayerConnect?

I tryed that and din't work
Reply
#15

Quote:
Originally Posted by Fedee!
Quote:
Originally Posted by SAWC™
It's pretty simple:
pawn Код:
public OnPlayerConnect(playerid)
{
  new
    pName[27];

  GetPlayerName(playerid, pName, 24);
  format(pName, 27, "%s[ID_%d]", pName, playerid);
  SetPlayerName(playerid, pName);
  return 1;
}
Why OnPlayerConnect?

I tryed that and din't work
it's work man!
but i need what i show on a pictures
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)