HELP: moving doors
#1

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;

Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)