21.02.2010, 15:54
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
like this
[TOG]N[e]x("id")
Thnx
public OnPlayerText(playerid, text[])
{
new string[128];
format(string,sizeof(string),"(%d) %s",playerid,text);
SendPlayerMessageToAll(playerid, string);
return 0;
}
public OnPlayerConnect(playerid)
{
new
pName[27];
GetPlayerName(playerid, pName, 24);
format(pName, 27, "%s[ID_%d]", pName, playerid);
SetPlayerName(playerid, pName);
return 1;
}
Originally Posted by SAWC™
It's pretty simple:
pawn Код:
|
Originally Posted by Fedee!
Quote:
I tryed that and din't work |