24.09.2009, 19:34
how do you make it so it shows their playerID next to their name on the chat?
public OnPlayerText(playerid, text[])
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s (%i): %s", playername, playerid, text);
SendClientMessageToAll(0xFFFFFFAA, string);
return 0;
}
Originally Posted by Don Correlli
pawn Код:
|
Originally Posted by » Pawnst★r «
No, it'll show the default SA:MP message "Playername: message" then it'll show "playername playerid : Message" directly underneath afaik. Correct me if I'm wrong.
|
Originally Posted by Don Correlli
Quote:
Well, return 0 at OnPlayerText and it won't. |
Originally Posted by » Pawnst★r «
Quote:
|