Command Problems.
#1

There's some problem with my few commands like, /gate or /belt.

Only first 3-4 players can use them, Others: Unknown Command, Any help?

pawn Код:
if(strcmp(cmdtext, "/Command", true)==0)
Reply
#2

We cant see your code by watching at your topic. Atleast show the /gate and /belt commands.

And i strongly recommend you to use ZCMD or Y_commands command processors.
Reply
#3

pawn Код:
dcmd_gate(playerid, params[])
{
#pragma unused params
MoveSNObjects(playerid);
MoveICObjects(playerid);
MovePDObjects(playerid);
MoveMYObjects(playerid);
MoveFBIObjects(playerid);
MoveSwatObjects(playerid);
                    return 1;
                    }
For 3 Players it works and for the fourth and rest it doesn't.
Reply
#4

What are MoveFBIObjects ?

can you show the callback ?
Reply
#5

Well, i converted like this but it still doesn't work.
Works for 3 players, not the fourth.

pawn Код:
if(strcmp(cmd, "/ogate", true) == 0)
    {
   sendername = NewPlayerName(playerid);
           GetPlayerSex(playerid);
           if(PlayerInfo[playerid][pFamily] == 9)
            {
            if(IsPlayerInRangeOfPoint(playerid, 15, -78.8494,-352.7016,1.4297))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the Swat Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the Swat Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                          if(sgateopen == 0) { sgateopen = 1; MoveObject(swatgate, -74.6103515625,-352.052734375,-4.6458487510681,1.5,0,0,270.49987792969); }
                          else if(sgateopen == 1) { sgateopen = 0; MoveObject(swatgate, -74.61085510,-352.05340576,3.90415335, 1.5,270.49987792969); return 1; }
                    }
                }
     if(IsPlayerConnected(playerid))
            {
            if(PlayerInfo[playerid][pFamily] == 1)
            {
            if(IsPlayerInRangeOfPoint(playerid, 15, 1547.8782,-1626.9744,13.3828))
                {
                    SetTimer("BarrierClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Barrier.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Barrier.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    MoveObject(pdbarrier, 1544.70605469,-1630.96484375,13.32031250, 0.97,0.00000000,0.00000000,0.00000000);
                    }
            else if(IsPlayerInRangeOfPoint(playerid, 15, 1588.0952,-1633.4735,13.3828))
                {
                    SetTimer("GateClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    MoveObject(pdgate, 1590.19531250,-1637.92871094,9.45155525, 1.5,0.00000000,0.00000000,0.00000000);
                        }
            else if(IsPlayerInRangeOfPoint(playerid, 3, 246.4400,71.3565,1003.6406))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                          if(pddooropen == 0) { pddooropen = 1; MoveObject(pddoor, 246.41601562,72.40332031,1007.22460938,1.5,0.00000000,0.00000000,269.99450684); }
                          else if(pddooropen == 1) { pddooropen = 0; MoveObject(pddoor, 246.41697693,72.40381622,1004.67211914,1.5,0.00000000,0.00000000,270.00000000); return 1; }
                        }
                    }
                }
    if(PlayerInfo[playerid][pFamily] == 4)
            {
            if(IsPlayerInRangeOfPoint(playerid, 15, 1534.6855,-1447.2247,13.3828))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Garage Gate.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Garage Gate.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    if(gateopen == 0) { gateopen = 1; MoveObject(fbiggate, 1534.81970215,-1451.32238770,10.11682796, 1.5,0,0,89.747314453125); }
                    else if(gateopen == 1) { gateopen = 0; MoveObject(fbiggate, 1534.64501953,-1451.31713867,14.61682796,1.5,0,0,89.75); return 1; }
                    }
          else if(IsPlayerInRangeOfPoint(playerid, 3, 240.5631,117.3975,1003.2257))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Door.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Door.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    if(fdooropen == 0) { fdooropen = 1; MoveObject(fbidoor1, 239.49096679688,120.94073486328,1003.6869506836,1.5,0,359.74731445313,90.494384765625); }
                    else if(fdooropen == 1) { fdooropen = 0; MoveObject(fbidoor1, 239.64337158203,118.64567565918,1003.6869506836,1.5,0,359.74731445313,90.494384765625); return 1; }
                    }
           else if(IsPlayerInRangeOfPoint(playerid, 3, 252.7914,108.6397,1003.2188))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Door 2.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Door 2.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    if(fdooropen2 == 0) { fdooropen2 = 1; MoveObject(fbidoor2, 253.1982421875,112.56420898438,1003.8385620117,1.5,0,359.74731445313,90.499877929688); }
                    else if(fdooropen2 == 1) { fdooropen2 = 0; MoveObject(fbidoor2, 253.21629333496,110.1643447876,1003.8385620117,1.5,0,359.75012207031,90.5); return 1; }
                    }
                }
           if(PlayerInfo[playerid][pFamily] == 6)
            {
            if(IsPlayerInRangeOfPoint(playerid, 1, 688.8182,-659.2468,16.2469))
                {
                    SetTimer("MilitaryGateClose", 12000, 0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    SetPlayerPos(playerid, 688.8182,-659.2468,16.2469);
                    SetPlayerFacingAngle(playerid, 9.3505);
                    MoveObject(mygate, 682.49609375,-656.37988281,11.71089172, 1.5, 0.00000000,0.00000000,179.99450684);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s Uses %s Key Card To Open Military Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown Uses %s Key Card To Open Military Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    }
           else if(IsPlayerInRangeOfPoint(playerid, 1, 688.8478,-654.1393,16.2478))
                {
                    SetTimer("MilitaryGateClose", 12000, 0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    SetPlayerPos(playerid, 688.8478,-654.1393,16.2478);
                    SetPlayerFacingAngle(playerid, 183.4265);
                    MoveObject(mygate, 682.49609375,-656.37988281,11.71089172, 1.5, 0.00000000,0.00000000,179.99450684);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s Uses %s Key Card To Open Military Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown Uses %s Key Card To Open Military Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    }
                }
          if(PlayerInfo[playerid][pFamily] == 8)
            {
            if(IsPlayerInRangeOfPoint(playerid, 15, 1092.9508,-630.4537,111.2062))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the ICAY Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the ICAY Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                          if(hgateopen == 0) { hgateopen = 1; MoveObject(hgate1, 1084.11718750,-627.62597656,108.30564880,1.5,0.00000000,13.24951172,0.00000000); MoveObject(hgate2, 1092.69238281,-627.50292969,106.25552368,1.5,0.00000000,13.24401855,349.24987793); }
                          else if(hgateopen == 1) { hgateopen = 0; MoveObject(hgate1, 1084.11767578,-627.62603760,112.28089142,1.5,0.00000000,13.25000000,0.00000000); MoveObject(hgate2, 1092.69250488,-627.50305176,110.25576782,1.5,0.00000000,13.24951172,349.25000000); return 1; }
                    }
           else if(IsPlayerInRangeOfPoint(playerid, 4, 1250.8412,-789.4551,1084.0078))
                {
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the ICAY Door.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the ICAY Door.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                          if(hdooropen == 0) { hdooropen = 1; MoveObject(hdoor, 1251.75292969,-789.33984375,1080.16162109,1.5,0.00000000,0.00000000,270.00000000); }
                          else if(hdooropen == 1) { hdooropen = 0; MoveObject(hdoor, 1251.75305176,-789.34057617,1082.83923340,1.5,0.00000000,0.00000000,270.00000000); return 1; }
                    }
                }
          if(PlayerInfo[playerid][pFamily] == 5)
            {
            if(IsPlayerInRangeOfPoint(playerid, 15, 777.8781,-1388.9695,13.6196))
                {
                    SetTimer("NewsGateClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the San News Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the San News Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    MoveObject(sngate, 765.20727539,-1384.94677734,12.71906471, 1.5, 0.00000000,0.00000000,0.00000000);
                    }
            else if(IsPlayerInRangeOfPoint(playerid, 15, 777.4324,-1326.8088,13.5469))
                {
                    SetTimer("NewsGateClose2", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the San News Gate 2.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the San News Gate 2.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }
                    MoveObject(sngate2, 765.18444824,-1329.99755859,12.71906471, 1.5, 0.00000000,0.00000000,0.00000000);
                    }
                }
                   return 1;
                   }
Reply
#6

Not just this, Few more commands are not working.

My starting On Player Command Text:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new string[256];
    new playermoney;
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new cmd[128];
    new giveplayerid, moneys, idx;
    dcmd(unban,5,cmdtext);
    cmd = strtok(cmdtext, idx);
Ending:

pawn Код:
//error message
    return 1;
    }
Reply
#7

find the prob. (its alot easier to find it now,btw its converted to zcmd)
pawn Код:
CMD:ogate(playerid,params[])
{
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,sendername,sizeof(sendername));
           GetPlayerSex(playerid);
           if(PlayerInfo[playerid][pFamily] == 9)
            {//f1o
            if(IsPlayerInRangeOfPoint(playerid, 15, -78.8494,-352.7016,1.4297))
                {//1o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//2o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the Swat Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//2c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//3o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the Swat Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//3c
                          if(sgateopen == 0)
                          { //3o
                          sgateopen = 1;
                          MoveObject(swatgate, -74.6103515625,-352.052734375,-4.6458487510681,1.5,0,0,270.49987792969);
                          }
                          else {
                          if(sgateopen == 1)
                          { //4o
                          sgateopen = 0;
                          MoveObject(swatgate, -74.61085510,-352.05340576,3.90415335, 1.5,270.49987792969); return 1;
                          }//4c
                    }//3c
                }//1c
     if(IsPlayerConnected(playerid))
            {//1o
            if(PlayerInfo[playerid][pFamily] == 1)
            {//2o
            if(IsPlayerInRangeOfPoint(playerid, 15, 1547.8782,-1626.9744,13.3828))
                {//3o
                    SetTimer("BarrierClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//4o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Barrier.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//4c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//5o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Barrier.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//5c
                    MoveObject(pdbarrier, 1544.70605469,-1630.96484375,13.32031250, 0.97,0.00000000,0.00000000,0.00000000);
                    }
            else if(IsPlayerInRangeOfPoint(playerid, 15, 1588.0952,-1633.4735,13.3828))
                {//6o
                    SetTimer("GateClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//7o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//7c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//7o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//7c
                    MoveObject(pdgate, 1590.19531250,-1637.92871094,9.45155525, 1.5,0.00000000,0.00000000,0.00000000);
                        }
            else if(IsPlayerInRangeOfPoint(playerid, 3, 246.4400,71.3565,1003.6406))
                {//8o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//9o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the PD Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//9c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//9o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the PD Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//9c
                          if(pddooropen == 0) { pddooropen = 1; MoveObject(pddoor, 246.41601562,72.40332031,1007.22460938,1.5,0.00000000,0.00000000,269.99450684); }
                          else if(pddooropen == 1) { pddooropen = 0; MoveObject(pddoor, 246.41697693,72.40381622,1004.67211914,1.5,0.00000000,0.00000000,270.00000000); return 1; }
                        }//8c
                    }//7c
                }//6c
    if(PlayerInfo[playerid][pFamily] == 4)
            {//6o
            if(IsPlayerInRangeOfPoint(playerid, 15, 1534.6855,-1447.2247,13.3828))
                {//7o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//8o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Garage Gate.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//8c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//8o
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Garage Gate.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//8c
                    if(gateopen == 0) { gateopen = 1; MoveObject(fbiggate, 1534.81970215,-1451.32238770,10.11682796, 1.5,0,0,89.747314453125); }
                    else if(gateopen == 1) { gateopen = 0; MoveObject(fbiggate, 1534.64501953,-1451.31713867,14.61682796,1.5,0,0,89.75); return 1; }
                    }
          else if(IsPlayerInRangeOfPoint(playerid, 3, 240.5631,117.3975,1003.2257))
                {//8o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//9o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Door.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//9c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//9o
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Door.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//9c
                    if(fdooropen == 0) { fdooropen = 1; MoveObject(fbidoor1, 239.49096679688,120.94073486328,1003.6869506836,1.5,0,359.74731445313,90.494384765625); }
                    else if(fdooropen == 1) { fdooropen = 0; MoveObject(fbidoor1, 239.64337158203,118.64567565918,1003.6869506836,1.5,0,359.74731445313,90.494384765625); return 1; }
                    }//8c
           else if(IsPlayerInRangeOfPoint(playerid, 3, 252.7914,108.6397,1003.2188))
                {//8o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//9o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the FBI Door 2.", sendername, Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//9c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//10o
                    format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the FBI Door 2.",Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//10c
                    if(fdooropen2 == 0) { fdooropen2 = 1; MoveObject(fbidoor2, 253.1982421875,112.56420898438,1003.8385620117,1.5,0,359.74731445313,90.499877929688); }
                    else if(fdooropen2 == 1) { fdooropen2 = 0; MoveObject(fbidoor2, 253.21629333496,110.1643447876,1003.8385620117,1.5,0,359.75012207031,90.5); return 1; }
                    }//9c
                }//8c
           if(PlayerInfo[playerid][pFamily] == 6)
            {//8o
            if(IsPlayerInRangeOfPoint(playerid, 1, 688.8182,-659.2468,16.2469))
                {//9o
                    SetTimer("MilitaryGateClose", 12000, 0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    SetPlayerPos(playerid, 688.8182,-659.2468,16.2469);
                    SetPlayerFacingAngle(playerid, 9.3505);
                    MoveObject(mygate, 682.49609375,-656.37988281,11.71089172, 1.5, 0.00000000,0.00000000,179.99450684);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//10o
                    format(string, sizeof(string), "*%s Uses %s Key Card To Open Military Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//10c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//11o
                                format(string, sizeof(string), "*Unknown Uses %s Key Card To Open Military Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//11c
                    }
           else if(IsPlayerInRangeOfPoint(playerid, 1, 688.8478,-654.1393,16.2478))
                {//10o
                    SetTimer("MilitaryGateClose", 12000, 0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    ApplyAnimation(playerid,"VENDING","VEND_Use",4.1,0,1,1,3000,0);
                    SetPlayerPos(playerid, 688.8478,-654.1393,16.2478);
                    SetPlayerFacingAngle(playerid, 183.4265);
                    MoveObject(mygate, 682.49609375,-656.37988281,11.71089172, 1.5, 0.00000000,0.00000000,179.99450684);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//11o
                    format(string, sizeof(string), "*%s Uses %s Key Card To Open Military Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//11c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//11o
                                format(string, sizeof(string), "*Unknown Uses %s Key Card To Open Military Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//11c
                    }//10c
                }//9c
          if(PlayerInfo[playerid][pFamily] == 8)
            {//9o
            if(IsPlayerInRangeOfPoint(playerid, 15, 1092.9508,-630.4537,111.2062))
                {//10o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//11o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the ICAY Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//11c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//11o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the ICAY Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//11c
                          if(hgateopen == 0) { hgateopen = 1; MoveObject(hgate1, 1084.11718750,-627.62597656,108.30564880,1.5,0.00000000,13.24951172,0.00000000); MoveObject(hgate2, 1092.69238281,-627.50292969,106.25552368,1.5,0.00000000,13.24401855,349.24987793); }
                          else if(hgateopen == 1) { hgateopen = 0; MoveObject(hgate1, 1084.11767578,-627.62603760,112.28089142,1.5,0.00000000,13.25000000,0.00000000); MoveObject(hgate2, 1092.69250488,-627.50305176,110.25576782,1.5,0.00000000,13.24951172,349.25000000); return 1; }
                    }
           else if(IsPlayerInRangeOfPoint(playerid, 4, 1250.8412,-789.4551,1084.0078))
                {//11o
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//12o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens/closes the ICAY Door.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//12c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//12o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens/closes the ICAY Door.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//12c
                          if(hdooropen == 0) { hdooropen = 1; MoveObject(hdoor, 1251.75292969,-789.33984375,1080.16162109,1.5,0.00000000,0.00000000,270.00000000); }
                          else if(hdooropen == 1) { hdooropen = 0; MoveObject(hdoor, 1251.75305176,-789.34057617,1082.83923340,1.5,0.00000000,0.00000000,270.00000000); return 1; }
                    }//11c
                }//10c
          if(PlayerInfo[playerid][pFamily] == 5)
            {//10o
            if(IsPlayerInRangeOfPoint(playerid, 15, 777.8781,-1388.9695,13.6196))
                {//11o
                    SetTimer("NewsGateClose", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//12o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the San News Gate.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//12c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//12o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the San News Gate.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//12c
                    MoveObject(sngate, 765.20727539,-1384.94677734,12.71906471, 1.5, 0.00000000,0.00000000,0.00000000);
                    }
            else if(IsPlayerInRangeOfPoint(playerid, 15, 777.4324,-1326.8088,13.5469))
                {//13o
                    SetTimer("NewsGateClose2", 12000, 0);
                    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,false,false,false,1000);
                    if(PlayerInfo[playerid][pUMask] == 0)
                                {//14o
                    format(string, sizeof(string), "*%s presses a button on %s watch and opens the San News Gate 2.", sendername,Gender[playerid]);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }//14c
                    else if(PlayerInfo[playerid][pUMask] == 1)
                                {//14o
                                format(string, sizeof(string), "*Unknown presses a button on %s watch and opens the San News Gate 2.",Gender[playerid]);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                }//14c
                    MoveObject(sngate2, 765.18444824,-1329.99755859,12.71906471, 1.5, 0.00000000,0.00000000,0.00000000);
                    }//13c
                }//12c
                   return 1;
                   }//11c
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)