How i can
#1

problem solved
Reply
#2

you can edit and doing something with chats in public "OnPlayerText"
Reply
#3

Find the players? I don't understand
Reply
#4

Quote:
Originally Posted by God'Z War
Посмотреть сообщение
find the players chat
server_log?
Reply
#5

hmm not log

the chat which players typed


i want to add in that players id
Reply
#6

Type in your language and use ****** translate. will be better.
Reply
#7

Quote:
Originally Posted by God'Z War
Посмотреть сообщение
hmm not log

the chat which players typed


i want to add in that players id
You mean like

doreto[3]:and what if type it will show here , its that you are looking ?

name[id]:text
Reply
#8

Try this, but I didn't test it though.
pawn Код:
public OnPlayerText(playerid,text[])
{
  new string[128]; //Creating string of 128 cellsto output the chat.
  new Lname[MAX_PLAYER_NAME]; //Creating name variable to get player's name.
  GetPlayerName(playerid,Lname,sizeof(Lname)); //Executing the variable on 'GetPlayerName' function and getting player's name.
  format(string,sizeof(string),"%s(ID:%d):{FFFFFF}%s", Lname, playerid, text); //Formatting the string and using Lname to output name, playerid for player's id, and text for the chat text.
  new Lcolor[MAX_PLAYERS]; //Creating a variable to get player's color.
  Lcolor[playerid] = GetPlayerColor(playerid); //Getting Player's color by executing our variable.
  SendClientMessageToAll(Lcolor,string); //Sends the chat message to all with the color of the name first and the chat text will be in white because we've used {FFFFFF} while formatting.
  return 0; //If you don't return 0, the original chat will pop out.
}
Reply
#9

Oh sorry for this post

its my mistak i added return1 for return0


any way thnz for your replay
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)