PDA

View Full Version : LSPD Lobby door


NeXoR
30/07/2015, 03:10 AM
Well when I try to open/close the door it mixes with the second door upstairs and it bugs the hell out
Watch the video for a proper explanation.
https://www.youtube.com/watch?v=hYjmPd1NBoQ

Code of the command
if(IsPlayerInRangeOfPoint(playerid, 3, 1559.0305,-1662.0181,-40.5941))
{
if(!LSPDLobbyStatus) // LSPD LOBBY
{
MoveDynamicObject(LSPDLobby, 1556.83911, -1661.60974, -41.59000, 1.50);
format(string, sizeof(string), "* %s puts their finger on the scanner and opens the lobby door.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
LSPDLobbyStatus = 1;
SetTimer("LSPDLobbyTimer", 3000, false);
}
else if(LSPDLobbyStatus)
{
MoveDynamicObject(LSPDLobby, 1570.34546, -1666.94275, -37.96000, 1.50);
format(string, sizeof(string), "* %s %s puts their finger on the scanner and closes the lobby door.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
LSPDLobbyStatus = 0;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 1569.9089,-1666.1753,-36.9441))
{
if(!LSPDUpStairsStatus) // LSPD UPSTAIRS
{
MoveDynamicObject(LSPDUpStairs, 1570.34546, -1668.24268, -37.96000, 1.50);
format(string, sizeof(string), "* %s puts their finger on the scanner and opens the electric door.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
LSPDUpStairsStatus = 1;
SetTimer("LSPDUpStairsTimer", 3000, false);
}
else if(LSPDUpStairsStatus)
{
MoveDynamicObject(LSPDUpStairs, 1558.19910, -1661.60974, -41.59000, 1.50);
format(string, sizeof(string), "* %s %s puts their finger on the scanner and closes the electric door.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
LSPDUpStairsStatus = 0;
}
}

NeXoR
30/07/2015, 02:50 PM
BUMP