How to moveable barrier?
#1

Hello ,help me scripter ,how to script moveable barrier?
Reply
#2

Idk what you want. Do you think about something like a gate or just a barrier that you can place somewhere and which can be moved by someone (not by car, etc), or do want it to move when you crash with a car into it, etc?
Reply
#3

I think he means were you create a gate for example and you get a command like /opengate and /closegate

/opengate to open the gate
/closegate to close the gate

Anyway Aizen you need to elaborate a bit more so we understand.
Reply
#4

Use the function MoveObject
Reply
#5

You know how to add vehicle to pawno? sorry i just kinda noob scripter
Reply
#6

PHP код:
CreateVehicle(ID,x,y,z,a,color1,color2,spawn
ID - The vehicle's model id
X - x coordination
Y - y coordination
Z - z coordination
A - vehicle's angle
Color 1 - Main color of the vehicle
Color 2 - Secondary color of the vehicle
Spawn - time it will take the vehicle to respawn (in Mili-seconds)
Reply
#7

Add it at OnGameModeInt?
Reply
#8

Quote:
Originally Posted by Aizen
Посмотреть сообщение
Add it at OnGameModeInt?
Yes.
Reply
#9

Quote:
Originally Posted by Aizen
Посмотреть сообщение
Add it at OnGameModeInt?
Yes
(*init)
Reply
#10

What is vehicle angle?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)