playerid
#1

Hey people.
What line shall add/filerscript in order to see like this in game chat:
Paul.eboy[id-10]: Hello all.
(the id stuff.)
Reply
#2

public OnPlayerText
{
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s[id- %i]: %s", playerid, pName, text);
SendClientMessageToAll(0xFFFFFF, string);


uhh?


or
pawn Код:
public OnPlayerText(playerid, text[])
{
  new str[9];
  format(str, 9, "[ip- %d]", playerid);
  strins(text, str, 0);  
  return 1;
}
Reply
#3

Just put "playerid" into format to get player's ID:
pawn Код:
new str[ 13 ];
format( str, sizeof str, "Your ID: %d", playerid );
SendClientMessage( playerid, str );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)