Local Chat
#7

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
pawn Код:
else {
                        if(IsPlayerInRangeOfPoint(i, 12.0, pos[0], pos[1], pos[2]))
                            SendClientMessage(i, COLOR_GREY, szMessage);
                    }
                }
                else {
                    if(IsPlayerInRangeOfPoint(i, 12.0, pos[0], pos[1], pos[2]))
                        SendClientMessage(i, COLOR_GREY, szMessage);
                }
replaced
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 12.0, pos[0], pos[1], pos[2]))
with
pawn Код:
if(IsPlayerInRangeOfPoint(i, 12.0, pos[0], pos[1], pos[2]))
That would just make it submit to the person who typed it though, would it not? I have it looping through the players to check if they are near them, and if they are, it sends them the message that playerid wrote.

Edit: I think I see what you did, I'll try it. Hold on.

Edit 2: Worked. Fixed it. Thanks!
Reply


Messages In This Thread
Local Chat - by Eric - 30.10.2012, 04:18
Re: Local Chat - by maramizo - 30.10.2012, 06:03
Re: Local Chat - by Eric - 30.10.2012, 12:07
Re: Local Chat - by Eric - 30.10.2012, 12:10
Re: Local Chat - by Eric - 30.10.2012, 21:54
Re: Local Chat - by RedFusion - 30.10.2012, 22:00
Re: Local Chat - by Eric - 30.10.2012, 22:01

Forum Jump:


Users browsing this thread: 2 Guest(s)