09.01.2009, 01:13
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 :
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
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; } |
Please tell me if this helped you at all, If not i can explain better in a Pm etc.
- Hugs from Bruzer