03.02.2010, 17:12
Ok so i can get in the checkpoint and go into an interior but... when i'm in the interior the other checkpoint ( the exit checkpoint) doesn't appear! D: and my script doesn't show any errors so idk D:
My defines
My gamemodeinit
verifycheckpoint thingy
Checkpointeneterthingy
My defines
pawn Код:
#define house 0
#define exit 1
pawn Код:
CreateCheckpoint(0, house, 2513.6108,-1650.3096,14.3557, 1.0);
CreateCheckpoint(7, exit, 225.8443,1021.4703,1084.0177, 1.0);
SetCheckpointInterior(house, 0);
SetCheckpointInterior(exit, 7);
StartCheckpointSeeking();
pawn Код:
public OnPlayerEnterCheckpoint(playerid){
VerifyCheckpoint(playerid);
return 1;
}
pawn Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
case house: // The checkpoint ID we specified when we created the checkpoint
{
SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
SetPlayerInterior(playerid,7);
}
case exit:
{
SetPlayerPos(playerid,2498.4055,-1644.3215,13.7826);
SetPlayerInterior(playerid,0);
}
}
return 1;
}