23.05.2009, 20:00
for some reason the object wont move :/
pawn Код:
new door;
new bool:Door;
new moving;
//in on filterscriptinit
door = CreateObject(3113, -2305.1000976563, 2050, 0.9200000166893, 0, 0, 0);//door
//in onplayercommandtext
if (strcmp(cmdtext, "/door", true)==0){
if(moving != 3){
if(Door == true){
MoveObject(door, -2305.1000976563, 2050.0000, 0.9200000166893, 2.00 );
Door = false;
}else{
MoveObject(door, -2305.1000976563, 2050.0000, 10.920000076294, 2.00 );
Door = true;
}
moving = 3;
}else SendClientMessage(playerid, 0xAAAAAAAA, "The lift is already moving");
return 1;
}
//in onobjectmoved
if(moving != 0){moving = 0;}