Global message and player id - 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: Global message and player id (
/showthread.php?tid=109907)
Global message and player id -
`Robo - 23.11.2009
Say I want it to be like
SendClientMessageToAll(0xDEEE20FF, "personwhoteleportednameshere : Teleported to blank");
How do I make the person player ID appear?
Re: Global message and player id -
Donuts - 23.11.2009
See
format. So it would be something like this:
pawn Код:
new playername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s : Teleported to blank", playername);