Help With Gate
#1

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
Reply
#2

.... 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
Reply
#3

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
Reply
#4

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;
}
Reply
#5

You just need to change some things around for gate commands, but its about the same.
Reply
#6


BEFORE POSTING!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)