02.03.2009, 09:08
Actually, I've got code from area51, but the marker doesn't show up? Help?
public OnPlayerEnterCheckpoint(playerid) {
switch (gPlayerCheckpointStatus[playerid]) {
case CHECKPOINT_PLANE:
{
GameTextForPlayer(playerid, "Welcome home", 2000, 5);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -36.106513, -6.884305, 2.938885);
SetPlayerCheckpoint(playerid,2324.5945,-1144.5468,1050.7031, 168.7494);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_AREA51;
}
case CHECKPOINT_AREA51:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid) {
switch (gPlayerCheckpointStatus[playerid]) {
case CHECKPOINT_PLANE:
{
GameTextForPlayer(playerid, "Welcome home", 2000, 5);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -36.106513, -6.884305, 2.938885);
SetPlayerCheckpoint(playerid,2324.5945,-1144.5468,1050.7031, 168.7494);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_AREA51;
}
case CHECKPOINT_AREA51:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}