SetPlayerPos...
#7

pawn Код:
// TOP
forward DoorCheck();

// ANYWHERE
public DoorCheck()
{
    for(new i = 0; i < MAX_PLAYERS; i++){
        if(IsPlayerInRangeOfPoint(i, doorx, doory, doorz, 1)
        {
            SetPlayerPos(i, yourx, youry, yourz);
            SetPlayerFacingAngle(i, facingangle); // Remove if not needed :)
        }
    }
}

// ONGAMEMODEINIT
    SetTimer("DoorCheck",2000,1);
This one should work.
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: 3 Guest(s)