[Tutorial] How to create /open /close gates
#1

Hello guys now i will show you how to create a /open /close gates ..

First step you need to do is create your command ..

pawn Код:
if(!strcmp(cmdtext, "/open", true, 3))
{
Now we need to create the gate (Use Mapping Editor )

When we create the gates now we need to define them..
pawn Код:
new tutorialgate; (put your gate name)
Then we add the gate
tutorialgate = CreateObject(cordinates and the gate .. )
Now we need to finish the command
pawn Код:
MoveObject(tutorialgate, cordinates, speed);
tutorialgate - the gate
cordinates - where to move
speed - move speed on the gate ..

Now for the /close we do all the same but we change the cordinates ..

Example command :
pawn Код:
if(strcmp(cmd,"/open",true)==0)
    {
            MoveObject(tutorialgate, 250.59617614746, 63.366600036621, 997.8391113281, 9.000);
            SendClientMessage(playerid, COLOR_YELLOW, "You have opened the gate .");
    return 1;
    }
Reply


Messages In This Thread
How to create /open /close gates - by JakeHunter1 - 20.06.2014, 19:34
Re: How to create /open /close gates - by ReD_DeVi - 22.06.2014, 04:21
Re: How to create /open /close gates - by JakeHunter1 - 25.06.2014, 10:51

Forum Jump:


Users browsing this thread: 3 Guest(s)