ID Beside name on chat. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ID Beside name on chat. (
/showthread.php?tid=111639)
ID Beside name on chat. -
BP13 - 03.12.2009
I was currently using this:
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;
}
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.
Re: ID Beside name on chat. -
Backwardsman97 - 03.12.2009
I don't think so. You could make your own server log I guess that wouldn't log this.
Re: ID Beside name on chat. -
pagie1111 - 03.12.2009
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string,sizeof(string),(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
Prints in my logs like this:
Код:
[13:59:55] [chat] [[EP]Awaran]: hey whats up
Re: ID Beside name on chat. -
Jeffry - 03.12.2009
Wow, this is cool.
Helped me too.