Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Mubashir on December 31st, 2016, 01:40 PM

Title: anyone give me elevator system for bank
Post by: Mubashir on December 31st, 2016, 01:40 PM
anyone give me elevator system for bank plzz'
Vccnr
Title: Re: anyone give me elevator system for bank
Post by: Kewun on December 31st, 2016, 05:22 PM
again vccnr....
Title: Re: anyone give me elevator system for bank
Post by: kennedyarz on December 31st, 2016, 08:54 PM
https://forum.vc-mp.org/?topic=4132.new#new
Title: Re: anyone give me elevator system for bank
Post by: kennedyarz on January 5th, 2017, 12:32 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 + "] " )
}
}