SA-MP Forums Archive
Why object not Moved? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why object not Moved? (/showthread.php?tid=258799)



Why object not Moved? - AlternativeDC - 01.06.2011

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;
 	}



Re: Why object not Moved? - GabryIIPazzo2 - 01.06.2011

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


Re: Why object not Moved? - AlternativeDC - 01.06.2011

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

what i must to do now/.?