Global message and player id
#1

Say I want it to be like

SendClientMessageToAll(0xDEEE20FF, "personwhoteleportednameshere : Teleported to blank");

How do I make the person player ID appear?
Reply
#2

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)