PD Door not opening and closing right...
#8

Hmm, try using:
pawn Код:
SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
So:
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
            {
                if(lspd2 == 0)
                {
                    SetDynamicObjectPos(lspddoor2, 246.228,72.4962,1000.63);
                    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
                {
                    SetDynamicObjectPos(lspddoor2, 246.228,72.4962,1003.04);
                    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;
                }
            }
Also avoid bumping the topic so early.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)