Normal chat in a short distance.
#1

How can i do that if a player talks
that only nearby players can see
it not everyone on the server..?
It is for a RolePlay server where i'm working on.
Reply
#2

pawn Code:
LimitGlobalChatRadius(/*Float:distance*/);
Reply
#3

Quote:
Originally Posted by Conroy
pawn Code:
LimitGlobalChatRadius(/*Float:distance*/);
Undr onplayertext?
And what do i need to ad in the /*float distance thing?
And do you know how i can make /accent so that the
player can choose /accent gangsta and that he talks
like [Name]: [Gangsta Acc.] Hello..

Anyone there?
Reply
#4

Anyone?
Reply
#5

OnGameModeInit, Float as in the distance the message travels, I use it at 10.0

Use search feature about the accents, it has been discussed many times.
Reply
#6

Quote:
Originally Posted by Conroy
OnGameModeInit, Float as in the distance the message travels, I use it at 10.0

Use search feature about the accents, it has been discussed many times.
This is now my OnGameModeInit
Quote:

new Float:distance;
public OnGameModeInit()
{

LimitGlobalChatRadius(Float:distance);

// Init our text display
txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
TextDrawUseBox(txtTimeDisp, 0);
TextDrawFont(txtTimeDisp, 3);
TextDrawSetShadow(txtTimeDisp,0); // no shadow
TextDrawSetOutline(txtTimeDisp,2); // thickness 1
TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
TextDrawColor(txtTimeDisp,0xFFFFFFFF);
TextDrawAlignment(txtTimeDisp,3);
TextDrawLetterSize(txtTimeDisp,0.5,1.5);

UpdateTime();
SetTimer("UpdateTime",1000 * 60,1);

DisableInteriorEnterExits();
SendRconCommand("mapname • Los Santos •");
SetGameModeText("Navi Roleplay");
AddPlayerClass(26,1642.5612,-2241.1753,13.4939,182.2707,0,0,0,0,0,0);
return 1;
}

Still nothing happens
Reply
#7

You must have misunderstood me.

pawn Code:
LimitGlobalChatRadius(Float:distance);
replace with:

pawn Code:
LimitGlobalChatRadius(10.0); //Change 10.0 to whatever value you want the default chat to be visable from


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)