13.07.2010, 22:15
Hello People
My name is Dino in RL
Tonight ((xD)) I going to show you how to make a Moving Object
Let Start
1
2
Put your object
3 Find your coordinate when gate is open end then put: OnPlayerCommandText(playerid, cmdtext[]) :
If you copy this Coordinate this is not going to work to you
Sorry for my bad english xD
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();
pawn Код:
public OnGameModeInit()
pawn Код:
public OnGameModeInit()
{
object = CreateObject(780,1559.642,-1427.411,45.146,0.0,0.0,90.000);
return 1;
}
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;
}
Sorry for my bad english xD