[Help] Make chat local
#1

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

i dont know if there is a command for it but otherwisenot 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
Reply
#3

LimitGlobalChatRadius?
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
that was what i was looking for ;P
Reply
#5

yes thank you,

found one bug only, you dont need the string params. just replace that with "text"
Reply
#6

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

is there a way to disable the other chat.because now it says the thing due onplayertext and normal chat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)