SA-MP Forums Archive
Help me convert - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me convert (/showthread.php?tid=110951)



Help me convert - [SW]thekillaer - 29.11.2009

Currently im using this http://forum.sa-mp.com/index.php?topic=95706.0

but i want to use this http://forum.sa-mp.com/index.php?topic=69459.0

At top
Код:
#define ELAVATOR_BOTTOM        0
#define ELAVATOR_TOP         1
ongamemodeini
Код:
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 OnPlayerEnterCheckpoint(playerid){
VerifyCheckpoint(playerid); // Asks the ChpManager to check this checkpoint and fire the next function
return 1;
}


Код:
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;
}