How to.
#3

Quote:
Originally Posted by JoeDaDude
Instead of stairs for my interior im using elevators.
How do i make it so if the lift is moving, And someone says,
/elevator 1st - To make it goto the 1st flooor,
Use an array with the zcoords, cell zero being the ground floor and ascending upwards from this is each floors height:

pawn Код:
new
  Float:gElevatorFloors[ FLOORS_AMOUNT_HERE ] = { 3.0, 13.0, 23.0, 33.0, 43.0 /*and so on*/ };


//in the command (DCMD format)
MoveObject( ..................., gElevatorFloors[ strval( params ) ]..................... );
Something like that would work along with a few checks, IsNumeric, current floor (playerZ) etc.
Reply


Messages In This Thread
How to. - by JoeDaDude - 09.02.2009, 15:45
Re: How to. - by SpiderPork - 09.02.2009, 15:49
Re: How to. - by Donny_k - 09.02.2009, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)