is this possible
#9

For the first one use IsPlayerInRangeOfPoint mixed with a timer, make a timer to check for everyone's position.

on OnGameModeInit()

pawn Код:
SetTimer("AreaTimer",5000,true);
pawn Код:
forward AreaTimer();
public AreaTimer()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
      {
            if(IsPlayerInRangeOfPoint(i, RANGE,X,Y,Z) && IsPlayerARobber(i)) // change to whatever you have
            {
                SetPlayerWantedLevel(playerid, 4);
            }
            else
            {
        SetPlayerWantedLevel(playerid, 0);
            }
        }
    }
}
Reply


Messages In This Thread
is this possible - by Kar - 20.06.2010, 23:07
Re: is this possible - by titanak - 20.06.2010, 23:18
Re: is this possible - by Antonio [G-RP] - 20.06.2010, 23:51
Re: is this possible - by titanak - 21.06.2010, 00:06
Re: is this possible - by Kar - 21.06.2010, 00:10
Re: is this possible - by (.Aztec); - 21.06.2010, 00:53
Re: is this possible - by BP13 - 21.06.2010, 02:51
Re: is this possible - by Kar - 21.06.2010, 02:55
Re: is this possible - by CuervO - 21.06.2010, 03:03
Re: is this possible - by Kar - 21.06.2010, 03:20

Forum Jump:


Users browsing this thread: 1 Guest(s)