SA-MP Forums Archive
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(playerid61544.7363,-1627.0232,13.3672)) // LSPD Barrier
        
{
            if(!
SAPDBarrierStatus)
            {
                
SAPDBarrierStatus 1;//open
                  
MoveObject(SAPDBarrier1543.4048, -1625.59999.60825);
            }
            else
            {
                
SAPDBarrierStatus 0;//lock
                
MoveDynamicObject(SAPDBarrier1543.4048, -1625.599914.20353);
            }
            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