28.10.2012, 19:14
My police door does not open and close right... Like the door faces the wrong direction (see picture). Whats wrong in my script... this is what I have:
http://i.imgur.com/ninfn.jpg
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
{
if(lspd2 == 0)
{
MoveDynamicObject(lspddoor2, 246.228,72.4962,1000.63, 4.5000);
SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspd2 = 1;
}
else
{
MoveDynamicObject(lspddoor2, 246.228,72.4962,1003.04, 4.5000);
SendClientMessage(playerid, COLOR_BLUE,"SAPD Control door is closed, thank you!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
lspd2 = 0;
}
}

