11.07.2013, 21:27
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
here is the code
PHP код:
CMD:openbay(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,-2196.1497,-2302.4524,30.6250)) //Cell5
{
MoveObject(bay1,-2196.5354, -2303.2283, 27.6457,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Bay has been opened.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,-2202.2986,-2297.3108,30.6250)) //Cell6
{
MoveObject(bay2,-2203.0640, -2297.8208, 27.6427,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Bay has been opened.");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,-2208.9780,-2291.9243,30.6250)) //Cell7
{
MoveObject(bay3,-2209.5164, -2292.5083, 27.6417,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Bay has been opened.");
}
return 1;
}