[Tutorial] [TuT]How TO MAke Moving Object
#1

Hello People
My name is Dino in RL
Tonight ((xD)) I going to show you how to make a Moving Object
Let Start
1
pawn Код:
new object;
pawn Код:
forward close();
2
pawn Код:
public OnGameModeInit()
Put your object
pawn Код:
public OnGameModeInit()
{
     object = CreateObject(780,1559.642,-1427.411,45.146,0.0,0.0,90.000);
     return 1;
}
3 Find your coordinate when gate is open end then put: OnPlayerCommandText(playerid, cmdtext[]) :
pawn Код:
if (strcmp("/open", cmdtext, true, 10) == 0)
{
       MoveObject(object,1587.690,-1437.827,4.755, 2.00);
       SetTimer("close", 7000, 0);//gate will be  closed for 7 seconds
       SendClientMessage(playerid,GREEN,"You are opening a Gate, and will be closed automaticly..");
       return 1;}
}
pawn Код:
public close()
{
    MoveObject(object,1549.612,-1127.641,45.126, 3.00);
    return 1;
}
If you copy this Coordinate this is not going to work to you
Sorry for my bad english xD
Reply


Messages In This Thread
[TuT]How TO MAke Moving Object - by Aleluja - 13.07.2010, 22:15
Re: [TuT]How TO MAke Moving Object - by ToPhrESH - 13.07.2010, 23:44
Re: [TuT]How TO MAke Moving Object - by [NTX]MikeQ - 14.07.2010, 08:32
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 15.07.2010, 10:07
Re: [TuT]How TO MAke Moving Object - by Aleluja - 15.07.2010, 11:08
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 15.07.2010, 19:05
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 15.07.2010, 19:07
Re: [TuT]How TO MAke Moving Object - by Christian_Bojic - 15.07.2010, 20:11
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 16.07.2010, 06:48
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 16.07.2010, 06:53
Re: [TuT]How TO MAke Moving Object - by Lorenc_ - 16.07.2010, 08:38
Re: [TuT]How TO MAke Moving Object - by Retardedwolf - 16.07.2010, 11:37
Re: [TuT]How TO MAke Moving Object - by Aleluja - 16.07.2010, 11:53
Re: [TuT]How TO MAke Moving Object - by [NTX]MikeQ - 17.07.2010, 19:15
Re: [TuT]How TO MAke Moving Object - by Thebest96 - 19.07.2010, 07:15
Re: [TuT]How TO MAke Moving Object - by Aleluja - 23.07.2010, 14:28
Re: [TuT]How TO MAke Moving Object - by T4vY - 29.07.2010, 06:40
Re: [TuT]How TO MAke Moving Object - by John_F - 29.07.2010, 07:17
Re: [TuT]How TO MAke Moving Object - by T4vY - 29.07.2010, 10:49
Re: [TuT]How TO MAke Moving Object - by T4vY - 30.07.2010, 11:11
Re: [TuT]How TO MAke Moving Object - by FireCat - 08.08.2010, 20:55
Re: [TuT]How TO MAke Moving Object - by Cameltoe - 09.08.2010, 15:32
Re: [TuT]How TO MAke Moving Object - by Scenario - 09.08.2010, 18:43
Re: [TuT]How TO MAke Moving Object - by Aleluja - 10.08.2010, 09:34
Re: [TuT]How TO MAke Moving Object - by Cameltoe - 10.08.2010, 10:23
Re: [TuT]How TO MAke Moving Object - by killer98p - 19.08.2010, 13:28
Re: [TuT]How TO MAke Moving Object - by FireCat - 28.08.2010, 14:02
Re: [TuT]How TO MAke Moving Object - by doreto - 30.08.2010, 10:53
Re: [TuT]How TO MAke Moving Object - by doreto - 01.09.2010, 13:50
Re: [TuT]How TO MAke Moving Object - by dino_d_carter - 07.06.2012, 21:51
Re: [TuT]How TO MAke Moving Object - by RamayMapper - 26.05.2015, 13:44
Re: [TuT]How TO MAke Moving Object - by FplayerGR - 26.05.2015, 13:47

Forum Jump:


Users browsing this thread: 3 Guest(s)