Return to Base
#2

In a timer:
pawn Код:
new
    Float:x,
    Float:y,
    Float:z;
GetPlayerPos( playerid, x, y, z );
if( x > MAX_X || x < MIN_X || y > MAX_Y || y < MIN_Y ) //remember to change MAX_X etc to the correct coords
{
    SetPlayerPos( playerid, SPAWN_X, SPAWN_Y, SPAWN_Z );
    //SpawnPlayer( playerid );
    //Remember, you shouldn't use both ;P
}
Good luck :]
Reply


Messages In This Thread
Return to Base - by Pilot Jack - 20.12.2009, 16:53
Re: Return to Base - by LarzI - 20.12.2009, 16:56
Re: Return to Base - by Pilot Jack - 20.12.2009, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)