Help With Gate - 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: Help With Gate (
/showthread.php?tid=107068)
Help With Gate -
kintama - 07.11.2009
can some 1 teach me how to make gates plz so that it opens on a
/open command and closes on a
/close command
if you can help say how to on the fourm or add me on MSN
Kintama@live.co.uk
thanks
Re: Help With Gate -
Badger(new) - 07.11.2009
.... This has been posted probably a million times!
1. Use Search
2. Use Wiki SA-MP
3. Use the automatic gates tutorial on wiki SA-MP
https://sampwiki.blast.hk/wiki/Automatic_Gates
Re: Help With Gate -
kintama - 07.11.2009
1. i would not post 4 help if i did not search
2. i look on wiki and the only thing i found was that link you just sent
3.the tut only show how to make a auto gate so when you go close to it. it open on it own i want it so i put in a commad /open to open and /close to close it
Re: Help With Gate -
Badger(new) - 07.11.2009
You obviously didn't search well:
http://forum.sa-mp.com/index.php?topic=130016.0
http://forum.sa-mp.com/index.php?topic=123852.0
http://forum.sa-mp.com/index.php?topic=113182.0
That tutorial may be on automatic gates, but it still has info on moving gates.
pawn Код:
new gate;
public OnGameModeInit()
{
gate=CreateObject(ObjectID,X,Y,Z,RotationX,RotationY,RotationZ);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/OpenGate",true)==0)
{
MoveObject(gate,newx,newy,newz,speed);
return 1;
}
if(strcmp(cmdtext,"/CloseGate",true)==0)
{
MoveObject(gate,x,y,z,speed);
return 1;
}
return 0;
}
Re: Help With Gate -
retart441 - 07.11.2009
You just need to change some things around for gate commands, but its about the same.
Re: Help With Gate -
DeltaAirlines12 - 08.11.2009
BEFORE POSTING!