Closer chat for RP. + REP.
#7

pawn Код:
stock CloseMessage(playerid, color, string[])
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(IsPlayerInRangeOfPoint(i, 10.0, x, y, z))
            {
                if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
                {
                    if(GetPlayerInterior(playerid) == GetPlayerInterior(i))
                    {
                        SendClientMessage(i, color, string);
                    }
                }
            }
        }
    }
Add this under OnPlayerText: CloseMessage(playerid, WHITE, text);
Reply


Messages In This Thread
Closer chat for RP. + REP. - by DemME - 20.12.2013, 19:11
Re: Closer chat for RP. + REP. - by Zamora - 20.12.2013, 19:21
Re: Closer chat for RP. + REP. - by DemME - 20.12.2013, 19:50
Re: Closer chat for RP. + REP. - by iFiras - 20.12.2013, 19:53
Re: Closer chat for RP. + REP. - by Zamora - 20.12.2013, 19:53
Re: Closer chat for RP. + REP. - by DemME - 20.12.2013, 19:56
Re: Closer chat for RP. + REP. - by Mitchy - 20.12.2013, 19:57
Re: Closer chat for RP. + REP. - by Zamora - 20.12.2013, 20:10
Re: Closer chat for RP. + REP. - by FakkChass - 20.12.2013, 20:31
Re: Closer chat for RP. + REP. - by DemME - 20.12.2013, 20:48

Forum Jump:


Users browsing this thread: 2 Guest(s)