24.06.2012, 03:57
pawn Код:
// top
new gate[2];
// where you create the gates
gate[0] = CreateObject(971, -1060.2998046875, -1338.19921875, 132.5, 0, 0, 347.99743652344);
gate[1] = CreateObject(971, -1046.7998046875, -1334.3994140625, 132.60000610352, 0, 0, 347.99743652344);
// under OnPlayerCommandText
if(strcmp("/opengate1", cmdtext, true) == 0)
{
MoveObject(gate[0], -1060.2998046875, -1338.19921875, 126.5, 7.5); // just decreased the 132.5 (Z value) by -6 (Change that as you like)
/*
Decrease the Z coordinate to make it move down.
*/
return 1;
}
/*
Continue, make a command to open the second gate just like I did above.
But make sure to change gate[0] to gate[1] and also the coords.
*/