How to Make [playerid] before the name on the chatbox
#5

And i would advise add the name too and reduce the string to 128 cells


pawn Код:
public OnPlayerText(playerid,text[]){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new msg[128];
format(msg,sizeof(msg),"[%d] %s: %s",playerid,name,text);
SendPlayerMessageToAll(0xFFFFFF,msg);
return 0;
}

Edit: And use a color which isn't playerid
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)