How to Make moving gate
#1

How to Make moving gate ?
Reply
#2

Use the search feature, there are about 10 tutorials on doing that.
Reply
#3

Yep, there are tones of tutorials, both on the samp wiki and on the forums.
There are also some ready made filterscripts, for both setting up gates to move, and to auto create gates.

Infact I am currently making an inlcude that will both create gates, and allow full control over them
I will release it a lot later once I have finished and had it running on our server for a while.
Reply
#4

Quote:
Originally Posted by NPTechStudios
Use the search feature, there are about 10 tutorials on doing that.
Instead of saying to him use search feature and doing noting try searching and posting the link here : http://forum.sa-mp.com/index.php?topic=158928.0 and than tell him to NEXT time use the search before posting. So here is the link : http://forum.sa-mp.com/index.php?topic=158928.0
Reply
#5

Quote:
Originally Posted by † мąүқоҳ™
Quote:
Originally Posted by NPTechStudios
Use the search feature, there are about 10 tutorials on doing that.
Instead of saying to him use search feature and doing noting try searching and posting the link here : http://forum.sa-mp.com/index.php?topic=158928.0 and than tell him to NEXT time use the search before posting. So here is the link : http://forum.sa-mp.com/index.php?topic=158928.0
thats right desicion and btw he is fully new to SAMP.As you can see that this is his first post
Reply
#6

Quote:
Originally Posted by _Saif_
thats right desicion and btw he is fully new to SAMP.As you can see that this is his first post
Maybe he has a new account on the forum and that doesn't mean he's new to SA:MP.
Reply
#7

Exactly, but he should have read the rules before posting too. Which state, "Use the search feature, before posting".
Reply
#8

Am new to sa-mp and the reply from mar.... is not working wrong pawn code.so plz help me by anyone post
Reply
#9

What? Okay, look. Here is the code for a moving gate...

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/ah3open", true)==0)
    {
        SendClientMessage(playerid, COLOR_BLUE, "The front gate has opened. Welcome Admin!");
        MoveObject(Gate1, 829.798,-2067.799,8.735, 3.0);
        return 1;
    }
    if(strcmp(cmdtext, "/ah3close", true)==0)
    {
      SendClientMessage(playerid, COLOR_BLUE, "The front gate has closed. Goodbye!");
      MoveObject(Gate1,829.784,-2067.690,14.727);
      return 1;
    }
}
return 1;
}
You must have the gate object codes, you have to have the code when it is closed, and when it is opened.
As you can use common sense the /ah3open moves the gate from closed position, to open. So use your cords accordingly. Vice versa with the close command.

Gate1 is a variable... So at the top of your script, you would need...
pawn Code:
new Gate1;
As for the Gate1 object codes... You would need to add the variable. Like so.
pawn Code:
Gate1 = CreateObject(980,829.784,-2067.690,14.727,0.0,0.0,0.0);
As for the MoveObject, I will explain.
pawn Code:
MoveObject(Gate1, 829.798,-2067.799,8.735, 3.0);
Gate1 is the variable, the next three codes, (829.798,-2067.799,8.735) are the XYZ cords of the gate in either opened or closed position. The last code, (3.0) is the speed the gate will open/close.

To find more information on this topic, either PM me, or use the Wiki SA:MP page. You could ALSO use the SEARCH function on this forum.

*Read the rules too, since you are new to the forums... If you need help, PM a moderator, or someone like me.
Reply
#10

Ntechstudios iam exceed 5 limit of message so iam replying in this !

i need two things one moving

and private car whn anyone took it should say "this car is reserverd for admin candyboy"

only for my cars !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)