Код:
CreateCheckpoint(GLOBAL_OWNER_ID, ELAVATOR_BOTTOM,1442.7020,-167.7312,17.3382);
CreateCheckpoint(GLOBAL_OWNER_ID, ELAVATOR_TOP,1448.4299,-162.0256,91.9699);
StartCheckpointSeeking();
Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
// ELAVATOR
case ELAVATOR_BOTTOM: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going up!");
SetPlayerPos(playerid,1448.4299,-162.0256,91.9699);
}
case ELAVATOR_TOP: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going Down!");
SetPlayerPos(playerid, 1442.7020,-167.7312,17.3382);
}
}
return 1;
}