Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Adding the player id to main chat messages by Weponz for multigamer25 - 2012
- #include <a_samp>
- public OnPlayerText(playerid, text[])
- {
- //Other OnPlayerText code here...
- new player_name[24], string[200];
- GetPlayerName(playerid, player_name, sizeof(player_name));
- format(string, sizeof(string), "%s [%d]: %s", player_name, playerid, text);
- SendClientMessageToAll(-1, string);
- return 0;
- }
Add Comment
Please, Sign In to add comment