#1

How do I do that the player came to a certain place and gates open?
Reply
#2

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

I tried, but no failed
Reply
#4

add me in msn pyrokar@libero.it i help u in live chat
Reply
#5

pawn Код:
forward AreaCheck();

public OnGameModeInit()
{
    SetTimer("AreaCheck", 2000, true);
    return 1;
}

public AreaCheck()
{
    for(new i=0; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, range, x, y, z)) //replace "range, x, y, z" with your object positions and the wished range
            {
                MoveObject(objectid, newx, newy, newz); //replace objectid, newx, newy, newz with your objectid and the new positions
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)