Name Color and Chat limit - 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: Name Color and Chat limit (
/showthread.php?tid=100673)
Name Color and Chat limit -
Rickyboy30 - 05.10.2009
Hey,
I got 2 questions:
-How can I set ALL Names to a white color ? Now people just get a random color. it must be white :/
-Who Can Make me a limit for the normal chat ? So when you press T and write: Poop, that ONLY the players within a radius of 100 meters can see it ?!
Please post the codes too
Thanks
Re: Name Color and Chat limit -
[XST]O_x - 05.10.2009
Search,There is a solution to Everything in the search button.
Search(click)
I've tried to search for a limited chat,and i've found TONS of results.Just search before starting a new topic,Please.
Re: Name Color and Chat limit -
Rickyboy30 - 05.10.2009
Hhm, okay. and how about the names ?
Re: Name Color and Chat limit -
Correlli - 05.10.2009
Quote:
Originally Posted by Rickyboy30
-How can I set ALL Names to a white color ? Now people just get a random color. it must be white :/
|
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerColor(i, 0xFFFFFFAA);
}
Quote:
Originally Posted by Rickyboy30
-Who Can Make me a limit for the normal chat ? So when you press T and write: Poop, that ONLY the players within a radius of 100 meters can see it ?!
|
https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius
Re: Name Color and Chat limit -
Rickyboy30 - 05.10.2009
Thanks
But where should I put the code you just posted with the colortag ?
Re: Name Color and Chat limit -
Correlli - 05.10.2009
You can add it in every-second-timer.
Re: Name Color and Chat limit -
Rickyboy30 - 05.10.2009
what ?!
Lol, Idk where you are talking about
Re: Name Color and Chat limit -
[XST]O_x - 05.10.2009
There is a much easier way to do it,
Under OnPlayerSpawn:
pawn Код:
SetPlayerColor(playerid, 0xFFFFFFAA);
Re: Name Color and Chat limit -
Rickyboy30 - 05.10.2009
WOW, Thanks man!
But with the Chatlimit, I did:
Код:
public OnGameModeInit()
{
LimitGlobalChatRadius(20.0);
//Here the rest of my script
But it isnt working, My friend was in Ls airport, I was in Vinewood, and we could still read all the chats :/
Re: Name Color and Chat limit -
Virtual1ty - 05.10.2009
use:
-OnPlayerText callback
-ProxDetector