Gate Help
#1

Hello,

I put this Police Station into my Server and now i want to put a gate arm thing that goes put and down like if you were going through a Toll both that Arm thing how do i put on somewhere and make it work?

The People that help me will get +rep..
Reply
#2

https://sampwiki.blast.hk/wiki/MoveObject

Check the example in it.
Reply
#3

But how do i make it go up and down?
That doesnt really help..
Reply
#4

It does help.

Quote:
Originally Posted by SA-MP Wiki
The Z coordinate to move the object to.
Let's say an object has been created at:

x: 5.0
y: 10.0
z: 15.0

Using MoveObject will move the object to the coordinates were given. So if you give:

x: 5.0
y: 10.0
z: 20.0

It will move the object 5 meters up. Uzing Z as 10, it will move it down.
Reply
#5

change x coordinates..
Reply
#6

if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}You open'et the gate");
MoveObject(name, cordinations);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Openet the gates.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}


And you need to add new name on the gate
And object name on the gate = CreateObject(object);
Reply
#7

Follow these interface, this would help you ALOT



X = Left / Right
Y = Forward / Backward
Z = UP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)