How to get this?
#1

I want to make this when people type:

Ex:
Player:[ID] Hello, how are you?

Black supposed to be white,

Greets
Reply
#2

pawn Код:
public OnPlayerText(playerid,text[])
{
  new string[128];
  format(string,sizeof string,"[%d] %s",playerid,text);
  SendPlayerMessageToAll(playerid,string);
  return 1;
Reply
#3

Black supposed to be white?

OnPlayerText is what your looking for

EDIT: Looks like hiddos where faster then me there

pawn Код:
public OnPlayerText(playerid,text[])
{
  new string[128];
  format(string,sizeof string,"%s:[%d] %s",GetName,playerid,text);
  SendPlayerMessageToAll(playerid,string);
  return 1;
}

stock GetName(playerid)
{
new pName[24];
GetPlayerName(playerid, pName, 24);
return pName;
}
Reply
#4

Thank you both, but i used hiddos code :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)