SetPlayerPos...
#2

pawn Код:
forward DoorCheck(playerid);
public DoorCheck(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, doorx, doory, doorz, 1)
    {
        SetPlayerPos(playerid, yourx, youry, yourz);
        SetPlayerFacingAngle(playerid, facingangle); // Remove if not needed :)
    }
}
And in your filterscript/gamemode set a timer to run every, uhmm, 3 seconds maybe?

pawn Код:
SetTimerEx("DoorCheck(playerid)", 3000, true, "i", playerid);
Not very efficient i know, but it gets the job done
Reply


Messages In This Thread
SetPlayerPos... - by FireCat - 30.07.2010, 11:01
Re: SetPlayerPos... - by Ash. - 30.07.2010, 11:15
Re: SetPlayerPos... - by Cameltoe - 30.07.2010, 11:20
Re: SetPlayerPos... - by FireCat - 30.07.2010, 11:32
Re: SetPlayerPos... - by Ash. - 30.07.2010, 11:33
Re: SetPlayerPos... - by FireCat - 30.07.2010, 11:40
Re: SetPlayerPos... - by Mike Garber - 30.07.2010, 13:26
Re: SetPlayerPos... - by Guest3598475934857938411 - 31.07.2010, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)