Name Color and Chat limit
#1

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
Reply
#2

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.
Reply
#3

Hhm, okay. and how about the names ?
Reply
#4

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
Reply
#5

Thanks

But where should I put the code you just posted with the colortag ?
Reply
#6

You can add it in every-second-timer.
Reply
#7

what ?!
Lol, Idk where you are talking about
Reply
#8

There is a much easier way to do it,
Under OnPlayerSpawn:
pawn Код:
SetPlayerColor(playerid, 0xFFFFFFAA);
Reply
#9

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 :/
Reply
#10

use:
-OnPlayerText callback
-ProxDetector

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)