[Tutorial] How to Make Moving Objects
#1

Hello guys today i'm gonna teach you how to make Moving Objects.

First add new at the top of your Script.

pawn Код:
new gate;//This will be your gate
Now under OnGameModeInit add your gate

pawn Код:
gate = CreateObject(971,263.59960938,-1333.29980469,55.40000153,0.00000000,0.00000000,215.24975586);//for example
Now for the command

pawn Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
    MoveObject(gate,coordinates,Speed,rotation coordinates);//your coordinates when the gate is opened
    return 1;
    }
    if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
    MoveObject(gate,coordinates,Speed,rotation coordinates);//your coordinates when the gate is closed
    return 1;
    }
And your done.
Reply


Messages In This Thread
How to Make Moving Objects - by SkullMaster73 - 13.09.2012, 13:23
Re: How to Make Moving Objects - by Glint - 13.09.2012, 15:03
Re: How to Make Moving Objects - by xMCx - 13.09.2012, 15:27
Re: How to Make Moving Objects - by xMCx - 13.09.2012, 15:29
Re: How to Make Moving Objects - by Glint - 13.09.2012, 15:30
Re: How to Make Moving Objects - by xMCx - 13.09.2012, 15:32
Re: How to Make Moving Objects - by Cjgogo - 13.09.2012, 16:47
Re: How to Make Moving Objects - by SkullMaster73 - 13.09.2012, 17:40

Forum Jump:


Users browsing this thread: 2 Guest(s)