Moving an object - 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)
+--- Thread: Moving an object (
/showthread.php?tid=637111)
Moving an object -
1fret - 08.07.2017
ok so im trying to make an gate for the PD etc but the gate opens perfectly but when i press the key "H" to close the gate it doesn't move it anytime at all.. here is the coding i will be still trying to fix the error anyways here you go
PHP код:
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 6, 1544.7363,-1627.0232,13.3672)) // LSPD Barrier
{
if(!SAPDBarrierStatus)
{
SAPDBarrierStatus = 1;//open
MoveObject(SAPDBarrier, 1543.4048, -1625.5999, 9.6082, 5);
}
else
{
SAPDBarrierStatus = 0;//lock
MoveDynamicObject(SAPDBarrier, 1543.4048, -1625.5999, 14.2035, 3);
}
return 1;
}
Re: Moving an object -
HoussemGaming - 08.07.2017
Why you use MoveDynamicObject in the closing one
Re: Moving an object -
Eoussama - 08.07.2017
Where is that code located?
Re: Moving an object -
1fret - 08.07.2017
Fixed hahahaa im so stupid, i reviewed it and saw the issue