[HELP] IsPlayerInRangeOfPoint Spamming
#3

pawn Код:
#include <a_samp>

forward Test(playerid);
new EnteredArea[MAX_PLAYERS];

public OnFilterScriptInit()
{
    SetTimer("Test", 1000, false);
    return 1;
}

public Test(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 7.0, 2239.7747, 2430.8074, 3.2734))
        {
            if(EnteredArea[playerid] == 0)
            {
                SendClientMessage(i,0xFFFFFFFF,"You entered the area!");
                EnteredArea[playerid]= 1;
                return 1;
            }
        }
        else if(!IsPlayerInRangeOfPoint(i, 7.0, 2239.7747, 2430.8074, 3.2734))
        {
            EnteredArea[playerid] = 0;
        }
        return 1;
    }
    return 1;
}
Not tested.
Reply


Messages In This Thread
[HELP] IsPlayerInRangeOfPoint Spamming - by Larsey123IsMe - 16.01.2011, 22:55
Re: [HELP] IsPlayerInRangeOfPoint Spamming - by [BEP]AcerPilot - 16.01.2011, 23:01
Re: [HELP] IsPlayerInRangeOfPoint Spamming - by Marricio - 16.01.2011, 23:06
Re: [HELP] IsPlayerInRangeOfPoint Spamming - by [BEP]AcerPilot - 16.01.2011, 23:09
Re: [HELP] IsPlayerInRangeOfPoint Spamming - by Larsey123IsMe - 16.01.2011, 23:15

Forum Jump:


Users browsing this thread: 1 Guest(s)