Teleports.
#7

you have to create a checkpoint..

Copied from Wiki SA:MP.
pawn Код:
//In this example, a checkpoint is created for the player when spawning,
//which creates a vehicle and disables the checkpoint.
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 2045.4803,-1907.7728,13.5469, 3.0);
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
     if(IsPlayerInRangeOfPoint(playerid, 2, 2045.4803,-1907.7728,13.5469))
    {
        SetPlayerPos(playerid, -2029.7825,-119.6237,1035.1719);
        SetPlayerInterior(playerid, 3);
        SetPlayerVirtualWorld(playerid, 0);
        SetCameraBehindPlayer(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
[SOLVED]Teleport's. - by Sledgehammer - 23.11.2013, 20:06
Re: Teleports. - by DarkLored - 23.11.2013, 20:09
Re: Teleports. - by Sledgehammer - 23.11.2013, 20:10
Re: Teleports. - by Konstantinos - 23.11.2013, 20:10
Re: Teleports. - by Sledgehammer - 23.11.2013, 20:30
Re: Teleports. - by DarkLored - 23.11.2013, 20:31
Re: Teleports. - by Spydah - 23.11.2013, 20:36
Re: Teleports. - by Sledgehammer - 23.11.2013, 20:37
Re: Teleports. - by Konstantinos - 23.11.2013, 20:42
Re: Teleports. - by Spydah - 23.11.2013, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)