How can i make these 2 commands into 1?
#4

Like this right?
pawn Код:
if(!strcmp(cmdtext, "/opendoor", true)) // By CuervO_NegrO
    {
        if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 4,251.2575,67.6536,1003.6406))
            {
                if(lspdw == 0)
                {
                    MoveDynamicObject(lspdwindows, 250.524,67.650,1001.08, 3.0000);
                    SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Open, Please Close it!");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and opens the Windows.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    lspdw = 1;
                }
                else
                {
                    MoveDynamicObject(lspdwindows, 250.524,67.650,1002.58, 3.0000);
                    SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Closed, Thank You!");
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s takes his/her remote control and closes the Windows.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    lspdw = 0;
                }
            }
        }
(this another command just to show if its like this you mean) I did this before but it just said that i had opened it but it didnt open
Reply


Messages In This Thread
How can i make these 2 commands into 1? - by Don_Cage - 09.03.2013, 00:59
Re: How can i make these 2 commands into 1? - by rangerxxll - 09.03.2013, 01:02
Re: How can i make these 2 commands into 1? - by Bartman - 09.03.2013, 01:13
Re: How can i make these 2 commands into 1? - by Don_Cage - 09.03.2013, 01:13
Re: How can i make these 2 commands into 1? - by Bartman - 09.03.2013, 01:15
Re: How can i make these 2 commands into 1? - by rangerxxll - 09.03.2013, 01:16
Re: How can i make these 2 commands into 1? - by Glad2BeHere - 09.03.2013, 01:17
Re: How can i make these 2 commands into 1? - by Don_Cage - 09.03.2013, 01:20
Re: How can i make these 2 commands into 1? - by Don_Cage - 09.03.2013, 01:41
Re: How can i make these 2 commands into 1? - by Squirrel - 09.03.2013, 03:57

Forum Jump:


Users browsing this thread: 2 Guest(s)