Normal chat in a short distance. - 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: Normal chat in a short distance. (
/showthread.php?tid=151526)
Normal chat in a short distance. -
Ihsan_Cingisiz - 30.05.2010
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.
Re: Normal chat in a short distance. -
Conroy - 30.05.2010
pawn Code:
LimitGlobalChatRadius(/*Float:distance*/);
Re: Normal chat in a short distance. -
Ihsan_Cingisiz - 30.05.2010
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?
Re: Normal chat in a short distance. -
Ihsan_Cingisiz - 30.05.2010
Anyone?
Re: Normal chat in a short distance. -
Conroy - 30.05.2010
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.
Re: Normal chat in a short distance. -
Ihsan_Cingisiz - 30.05.2010
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
Re: Normal chat in a short distance. -
Conroy - 30.05.2010
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