15.04.2010, 19:53
Hey Everyone, I was wondering if someone could tell me or show me how to make it so you walk up to a door and pop up in a interior and then be able to exit it also. Thanks!

Originally Posted by Tony1337
Alright, can you give me a example?
|
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid,X,Y,Z);
printf("Player %i is now at the building checkpoint!",playerid);
if (IsPlayerInCheckpoint(playerid))
{
SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
printf("Player %i have left a building checkpoint!",playerid);
return 1;
}