How i can - 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)
+--- Thread: How i can (
/showthread.php?tid=386176)
How i can -
God'Z War - 19.10.2012
problem solved
Re: How i can -
FL1K3R - 19.10.2012
you can edit and doing something with chats in public "OnPlayerText"
Re: How i can -
ViniBorn - 19.10.2012
Find the players? I don't understand
Re: How i can -
doreto - 19.10.2012
Quote:
Originally Posted by God'Z War
find the players chat
|
server_log?
Re: How i can -
God'Z War - 19.10.2012
hmm not log
the chat which players typed
i want to add in that players id
Re: How i can -
[HK]Ryder[AN] - 19.10.2012
Type in your language and use ****** translate. will be better.
Re: How i can -
doreto - 19.10.2012
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
Re: How i can -
Lordzy - 19.10.2012
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.
}
Re: How i can -
God'Z War - 19.10.2012
Oh sorry for this post
its my mistak i added return1 for return0
any way thnz for your replay