Local Chat
#6

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]))
Your current code checks if the player using the chat is anywhere near his own position, you should check the reciever's distance to the player using the chat instead
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: 1 Guest(s)