23.11.2013, 20:36
you have to create a checkpoint..
Copied from Wiki SA:MP.
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;
}