How to moveable barrier? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to moveable barrier? (
/showthread.php?tid=250180)
How to moveable barrier? -
Aizen - 22.04.2011
Hello ,help me scripter ,how to script moveable barrier?
Re: How to moveable barrier? -
DeathOnaStick - 22.04.2011
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?
Re: How to moveable barrier? -
captainjohn - 22.04.2011
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.
Re: How to moveable barrier? -
nuriel8833 - 22.04.2011
Use the function
MoveObject
Re: How to moveable barrier? -
Aizen - 22.04.2011
You know how to add vehicle to pawno? sorry i just kinda noob scripter
Re: How to moveable barrier? -
nuriel8833 - 22.04.2011
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)
Re: How to moveable barrier? -
Aizen - 22.04.2011
Add it at OnGameModeInt?
Re: How to moveable barrier? -
Markx - 22.04.2011
Quote:
Originally Posted by Aizen
Add it at OnGameModeInt?
|
Yes.
Re: How to moveable barrier? -
nuriel8833 - 22.04.2011
Quote:
Originally Posted by Aizen
Add it at OnGameModeInt?
|
Yes

(*init)
Re: How to moveable barrier? -
Aizen - 23.04.2011
What is vehicle angle?