how to add Player near the name on the chat and player actions
#3

Quote:
Originally Posted by GrandParadise
Посмотреть сообщение
Download this script!

Click here
Why would he need to download a script for? At least use pastbin next time other using useless mirrors to download the file witch we do not know what it contains. His asked a simple question, although this should be in scripting help not under Server Support.

pawn Код:
new string[128], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s (%d): %s", name, playerid, text);
It should look like Andre02(2): text if you used it correctly under the correct function. To get the users ID, use "playerid". I've shown a valid example shown above.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)