SA-MP Forums Archive
How to get this? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to get this? (/showthread.php?tid=158109)



How to get this? - Futurezx - 08.07.2010

I want to make this when people type:

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

Black supposed to be white,

Greets


Re: How to get this? - Hiddos - 08.07.2010

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



Re: How to get this? - Cameltoe - 08.07.2010

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;
}



Re: How to get this? - Futurezx - 08.07.2010

Thank you both, but i used hiddos code :P