Mubashir

  • Newbie
  • Posts: 13

Kewun

  • Hero Member
  • Posts: 785

kennedyarz

  • Sr. Member
  • Making American Great Again
  • Posts: 337
Re: anyone give me elevator system for bank
« Reply #3, on January 5th, 2017, 12:32 PM »Last edited on January 5th, 2017, 12:35 PM
(click to show/hide)
Code: [Select]
add in you OnScriptLoad
{
bank()
print("bank asensor loaded, I will not bother more users of the forum with silly questions")
}

Code: [Select]
function bank()
{
CreateCheckpoint(null, 1, true, Vector(point1 give pos of checkpoint), RGB(0, 0, 200), 1.3); //bank acensor
}

function onCheckpointEntered(player, CheckPoint)
{
switch( CheckPoint.ID )
  {
case 0:
player.Pos = Vector(teleported to); // Bank
break;
}
}


How to know where the points are going? Here is also this

add in you
onPlayerCommand(player, cmd, tex)
Code: [Select]
{
else if ( cmd == "GPS" || cmd == "gps" )
{
MessagePlayer( "[#f1f1f1][GPS][#ff1111] you are in [#AC9000][Pos X " + player.Pos.x + "], [#FF0000][Pos Y " + player.Pos.y + "], [#FFF999]Pos Z " + player.Pos.z , player );
print( "[GPS][Pos X " + player.Pos.x + "] [Pos Y " + player.Pos.y + "] [Pos Z " + player.Pos.z + "] " )
}
}