Help: chat room text color - 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: Help: chat room text color (
/showthread.php?tid=170280)
Help: chat room text color -
Camacorn - 22.08.2010
I need help making only the name colored and the text white like almost all servers...
here is the issue:
and im assuming this is the code you need to see:
Код:
public OnPlayerText(playerid, text[])
{
SaveScore(playerid);
if(text[0] == '!') //change ! to what variable u wanna use
{
new string[128]; GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "[RADIO]%s: %s", string, text[1]);
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i,GetPlayerColor(playerid), string);
}
return 0;
}
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "ID:[%d]%s: %s", playerid, pName, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
Thanks in advance.
Re: Help: chat room text color -
WillyP - 22.08.2010
you dont even need to code anything :l
Re: Help: chat room text color -
Camacorn - 22.08.2010
Quote:
Originally Posted by [FU]Victious
you dont even need to code anything :l
|
if i dont then it doesnt let people talk.
Re: Help: chat room text color -
Camacorn - 22.08.2010
plz can someone help (( sorry for double post