[Tutorial] Moving Gates, Elevators Etc.
#1

Hello, Many people have asked me " Can you help me make a moving gate" So now i am showing a tutorial of how to make one.

Alright first, We need cords.
Step 1. Go to the place you want your gate to be, /save Gate
Step 2. Now go to the place where you want your gate to move to ( I usually make it move up. )
Step 3. Then get the Cords for when it moves back down.
Step 4. Go to your GTA SA File ( Located In ProgramFiles/Rockstargames/Grand Theft Auto GTA SA/ And search for Saved Positions.



Example code :

Quote:

First, add
( new elevator; ) Near the top of your script, I will be using the Object named "elevator" You can edit this.
Example : new elevator;

Quote:

Second,Get the cords of where your gate,elevator etc is. Make sure it's the cord of where it's closed.
Then add something like this, Put it under your Vehicle spawns/skins/objects- you pick.

Now it should look like this :
elevator = CreateObject( 2669 , -1489.413085 , 2624.577148 , 61.223720 , 0.000000 , 0.000000 , 358.000000 );
^ ^
| |
Is the object name Object id ( Now the wrest is the cords. Put yours in )

Quote:

And now the final step!

Put your command in under "OnPlayerCommandText" - Edit this command to your wishes.

if(strcmp(cmd, "/eup", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(elevator,-1489.413085,2624.461914,84.440391,2.00); // Put your cords in here
SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); // You dont alwas have to put this in, delete if wanted.
return 1;
}
if(strcmp(cmd, "/edown", true) == 0) { // Same deal as before
MoveObject(elevator,-1489.413085,2624.461914,60.960697,-2.00); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait."); // Same deal as before
return 1;
}

And Tada ! Your done. Enjoy your moving gates.
Please tell me if this helped you at all, If not i can explain better in a Pm etc.
- Hugs from Bruzer
Reply


Messages In This Thread
[Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 09.01.2009, 01:13
Re: [Tutorial] Moving Gates, Elevators Etc. - by g@k - 09.01.2009, 01:28
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 09.01.2009, 01:30
Re: [Tutorial] Moving Gates, Elevators Etc. - by flames - 09.01.2009, 01:35
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 09.01.2009, 01:35
Re: [Tutorial] Moving Gates, Elevators Etc. - by g@k - 09.01.2009, 01:35
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 09.01.2009, 01:40
Re: [Tutorial] Moving Gates, Elevators Etc. - by Nimphious - 09.01.2009, 01:40
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 09.01.2009, 01:51
Re: [Tutorial] Moving Gates, Elevators Etc. - by Jari - 14.01.2009, 23:02
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 14.01.2009, 23:04
Re: [Tutorial] Moving Gates, Elevators Etc. - by Joe Staff - 15.01.2009, 02:03
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 15.01.2009, 11:03
Re: [Tutorial] Moving Gates, Elevators Etc. - by Donny_k - 15.01.2009, 14:25
Re: [Tutorial] Moving Gates, Elevators Etc. - by Joe Staff - 15.01.2009, 15:40
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 15.01.2009, 15:56
Re: [Tutorial] Moving Gates, Elevators Etc. - by Jari - 15.01.2009, 18:08
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 15.01.2009, 19:06
Re: [Tutorial] Moving Gates, Elevators Etc. - by Jari - 15.01.2009, 19:25
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 15.01.2009, 21:18
Re: [Tutorial] Moving Gates, Elevators Etc. - by Guziiinho - 06.02.2009, 15:21
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 06.02.2009, 15:59
Re: [Tutorial] Moving Gates, Elevators Etc. - by Guziiinho - 06.02.2009, 16:05
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 06.02.2009, 16:06
Re: [Tutorial] Moving Gates, Elevators Etc. - by Guziiinho - 06.02.2009, 16:19
Re: [Tutorial] Moving Gates, Elevators Etc. - by Snyper18 - 06.02.2009, 16:24
Re: [Tutorial] Moving Gates, Elevators Etc. - by Guziiinho - 06.02.2009, 16:35
Re: [Tutorial] Moving Gates, Elevators Etc. - by Prieto_Galletini - 13.02.2009, 14:34
Re: [Tutorial] Moving Gates, Elevators Etc. - by Omega90210 - 15.02.2009, 01:43
Re: [Tutorial] Moving Gates, Elevators Etc. - by Joe Staff - 15.02.2009, 04:48
Re: [Tutorial] Moving Gates, Elevators Etc. - by TheNotorius - 27.05.2010, 09:15
Re: [Tutorial] Moving Gates, Elevators Etc. - by willsuckformoney - 14.06.2010, 07:41
Re: [Tutorial] Moving Gates, Elevators Etc. - by foefjoekel - 23.10.2011, 19:55
Re: [Tutorial] Moving Gates, Elevators Etc. - by AdvancedMapper - 29.04.2012, 01:40
Re: [Tutorial] Moving Gates, Elevators Etc. - by ReneG - 29.04.2012, 02:27

Forum Jump:


Users browsing this thread: 7 Guest(s)