30.03.2010, 10:02
Add DisableInteriorEnterExits(); to OnGameModeInit, Create a pickup where you want a player to enter an interior.
Example:
Also can work with checkpoints but in my opinion for someone new to pawn, pickups could be easier. And not to mention look a lot better.
Example:
pawn Код:
new pickup;
public OnGameModeInit()
{
DisableInteriorEnterExits();
pickup = CreatePickup(1239, 23, 3000, 3000, 3000, 0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 3000, 3000, 3000);
}
return 1;
}