02.10.2011, 19:42
Quote:
So , if i want to get the Player's ID :
Ex : In Chat , i want to see ID of Each Player pawn Код:
|
pawn Код:
public OnPlayerText(playerid, text[])
{
// Create a new string of length 128 characters
new string[128];
// Create the line to send (put the value of "playerid" at the "%i", then insert the given text at the "%s"
format(string, sizeof(string), "X[id: %i]: %s", playerid, text);
// Send this to all players
SendClientMessageToAll(0xFFFFFFFF, string);
// block the normal text to be written to the chatbox, as the SendClientMessageToAll line sends the required text already
return 0;
}