Why object not Moved?
#1

i created President House and i have now the commands script :
Garage Gate Open
Garage Gatee Close
President Door Open
President Door Close
Nice here.. but i put in game /opengate
and object dont move i have set the speed and the object last pos but nothing pLZ help here is the script:
Код:
if (strcmp("/pdoropen", cmdtext, true, 10) == 0)
	{
	MoveObject(pdordown, 1007.48339844, 2463.10839844, 18.42169571, 5.0);
	SendClientMessage(playerid,0xAA3333AA ,"President Centre Door Opened SuccesFully!");
	return 1;
	}

 //---------------------------
	if (strcmp("/pdorclose", cmdtext, true, 10) == 0)	{
	MoveObject(pdordown, 1007.48425293, 2463.10888672, 12.09671211, 4.0);
	SendClientMessage(playerid,0xAA3333AA ,"President Centre Door Closed SuccesFully!");
	return 1;
	}

//----------------
 {
	if (strcmp("/opengate", cmdtext, true, 10) == 0)
	{
	MoveObject(gate1down, 907.38311768, 2443.16552734, 20.19421959, 3.8);
	SendClientMessage(playerid,0xAA3333AA ,"President Garage Gate Opened SuccesFully.");
	return 1;
	}
 }
//----------------------
	if (strcmp("/closegate", cmdtext, true, 10) == 0)
	{
	MoveObject(gate1down, 907.38311768, 2443.16552734, 12.41922760, 3.8);
	SendClientMessage(playerid,0xAA3333AA ,"President Garage Gate Closed SucCesFully.");
	return 1;
	}
//-----------------------
	if (strcmp("/phhc", cmdtext, true, 10) == 0)
 	{
	    SendClientMessage(playerid,0xFFFF00AA ,"Use '/pdoropen' to open the center Door of House.");
	    SendClientMessage(playerid,0xFFFF00AA ,"Use '/pdorclose' to close the center Door of House.");
	    SendClientMessage(playerid,0xFFFF00AA ,"Use '/opengate' to Open a president GaraGe gate.");
	    SendClientMessage(playerid,0xFFFF00AA ,"Use '/closegate' to Close a president GaraGe gate.");
  	return 1;
 	}
Reply
#2

Have you defined the gate1down?
Show me the define (gate1down = CreateObject ecc.)
Reply
#3

yes i have used in
new gatedown
and
OnGamemodeInit();
{
gatedown = CreateDyNamicObject(bla bla bla);
return 1;
}

what i must to do now/.?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)