Little help - 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: Little help (
/showthread.php?tid=67474)
Little help -
jonybomb - 01.03.2009
Hi guys
How to put the id of players in the chat?
for example: jonybomb[0]: (message)
Thanks
Re: Little help -
Dark_BasS - 01.03.2009
Here it is:
public OnPlayerText(playerid,text[])
Under
new textstring[128];
format(textstring, sizeof(textstring), "[%i] %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 0;
}
this is it
Re: Little help -
jonybomb - 01.03.2009
Works, thanks