SA-MP Forums Archive
Help Player ID's - 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: Help Player ID's (/showthread.php?tid=86282)



Help Player ID's - [mad]MLK - 13.07.2009

Anyone have to code for the player id in game eg.

[mad]mlk:[1] hello

and were would the code go under what

thanks


Re: Help Player ID's - Correlli - 13.07.2009

http://forum.sa-mp.com/index.php?action=search


Re: Help Player ID's - Gappy - 13.07.2009

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