02.08.2011, 17:11
GetPlayerName gets the name of a player and SendClientMessageToAll sends a message string to all players on the server.
pawn Код:
new szPlayerName[MAX_PLAYER_NAME], szMessage[74];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "%s has taken a taxi to location [insert location].", szPlayerName);
SendClientMessageToAll(0, szMessage); // Replace 0 with the colour