13.09.2012, 13:23
(
Последний раз редактировалось SkullMaster73; 02.10.2012 в 14:02.
)
Hello guys today i'm gonna teach you how to make Moving Objects.
First add new at the top of your Script.
Now under OnGameModeInit add your gate
Now for the command
And your done.
First add new at the top of your Script.
pawn Код:
new gate;//This will be your gate
pawn Код:
gate = CreateObject(971,263.59960938,-1333.29980469,55.40000153,0.00000000,0.00000000,215.24975586);//for example
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;
}