28.07.2011, 12:13
PVars are another form of storing data. You can read more about what they are here.
As for showing the player's ID when they speak in chat, you can change your OnPlayerText callback to contain the following code:
As for showing the player's ID when they speak in chat, you can change your OnPlayerText callback to contain the following code:
pawn Код:
public OnPlayerText(playerid, text[]) {
new
szText[128],
szPlayerName[MAX_PLAYER_NAME];
format(szText, sizeof(szText), "%s [%d] says: %s", szPlayerName, playerid, text);
SendClientMessageToAll(COLOUR, szText); // You need to specify a colour where 'COLOUR' is
return 0;
}