SA-MP Forums Archive
HELP: moving doors - 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: HELP: moving doors (/showthread.php?tid=450164)



HELP: moving doors - Godzilla8957 - 11.07.2013

i'm having a problem with opening doors, I'm trying to make a FD with movable garage doors but when i get in game they won't open. the script with compile fine

here is the code

PHP код:
CMD:openbay(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid2.0,-2196.1497,-2302.4524,30.6250)) //Cell5
    
{
        
MoveObject(bay1,-2196.5354, -2303.228327.6457,0.50);
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Bay has been opened.");
    }
    if(
IsPlayerInRangeOfPoint(playerid2.0,-2202.2986,-2297.3108,30.6250)) //Cell6
    
{
        
MoveObject(bay2,-2203.0640, -2297.820827.6427,0.50);
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Bay has been opened.");
    }
    if(
IsPlayerInRangeOfPoint(playerid2.0,-2208.9780,-2291.9243,30.6250)) //Cell7
    
{
        
MoveObject(bay3,-2209.5164, -2292.508327.6417,0.50);
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Bay has been opened.");
    }
    return 
1;




Re: HELP: moving doors - JimmyCh - 11.07.2013

I don't see why it shouldn't work, seems fine though.

EDIT:Try highering the radius more than 2.0, like atleast 5.0 or 10.0.