[Help] Make chat local - 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] Make chat local (
/showthread.php?tid=162800)
[Help] Make chat local -
Kastranova - 24.07.2010
Hello im trying to make my own gamemode.
Does anyone have's a sript to make if you talk that it becomes local and not that everyone see's it.
and that if you talk you do the talk animation.
Please help me.
Re: [Help] Make chat local -
selten98 - 24.07.2010
i dont know if there is a command for it but otherwise

not tested just as i thought it should be)
pawn Код:
public OnPlayerText(playerid, text[])
{
#define COLOR_MESSAGE 0xFFFF00AA
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
new id;
new string[128];
new params[128];
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(id,10/*range around the player*/,x,y,z)) {
format(string,sizeof(string),"%s(%d) said: %s",pname,playerid,params);
SendClientMessage(id,COLOR_MESSAGE,string);
}
return 1;
}
tell the errors and warnings you find
Re: [Help] Make chat local -
Vince - 24.07.2010
LimitGlobalChatRadius?
Re: [Help] Make chat local -
selten98 - 24.07.2010
Quote:
Originally Posted by Vince
|
that was what i was looking for ;P
Re: [Help] Make chat local -
Kastranova - 24.07.2010
yes thank you,
found one bug only, you dont need the string params. just replace that with "text"
Re: [Help] Make chat local -
selten98 - 24.07.2010
Quote:
Originally Posted by Kastranova
yes thank you,
found one bug only, you dont need the string params. just replace that with "text"
|
i dunno why but i always use "params"
Re: [Help] Make chat local -
Kastranova - 24.07.2010
is there a way to disable the other chat.because now it says the thing due onplayertext and normal chat