03.12.2009, 03:15
I was currently using this:
Which made your name like this
[SU]BP13[1]: Hello Jim
But in the server log its a nightmare to do anything because it appears as this:
[00:00:05] [chat] [[SU]BP13]: Hello Jim
[00:00:05] [nick] [SU]BP13 nick changed to [SU]BP13[1]
[00:00:05] [nick] [SU]BP13[1] nick changed to [SU]BP13
Every time a word was sent on the chatbox. Is there a way that you can make name changes not show up on the log or make it so it shows like this (Last Resort)
[SU]BP13:[1] Hello Jim.
Thanks for the help.
pawn Код:
public OnPlayerText(playerid,text[])
{
new pname[MAX_PLAYER_NAME+5];
new pname2[MAX_PLAYER_NAME+5];
GetPlayerName(playerid,pname,sizeof(pname));
format(pname2,sizeof(pname2),"%s[%d]",pname,playerid);
SetPlayerName(playerid,pname2);
SendPlayerMessageToAll(playerid,text);
SetPlayerName(playerid,pname);
return 0;
}
[SU]BP13[1]: Hello Jim
But in the server log its a nightmare to do anything because it appears as this:
[00:00:05] [chat] [[SU]BP13]: Hello Jim
[00:00:05] [nick] [SU]BP13 nick changed to [SU]BP13[1]
[00:00:05] [nick] [SU]BP13[1] nick changed to [SU]BP13
Every time a word was sent on the chatbox. Is there a way that you can make name changes not show up on the log or make it so it shows like this (Last Resort)
[SU]BP13:[1] Hello Jim.
Thanks for the help.