04.08.2010, 01:25
First create object:
The command to open:
Close:
pawn Код:
gate = CreateObject(980, 2793.449951, 3880.148438, 4.679246, 0.0000, 0.0000, 180.0000); // Gate Closed
pawn Код:
if(!strcmp(cmdtext,"/open",true ))
{
MoveObject(gate,2793.435303, 3880.137695, 10.504232,2);
return 1;
}
pawn Код:
if(!strcmp(cmdtext,"/close",true ))
{
MoveObject(gate,2793.449951, 3880.148438, 4.679246,2);
return 1;
}