Jump to content
  • 0

Problema /opengate


Xcite

Question

Salut , am in gm cateva bariere si porti la PD si FBI . Dintre ele doar 2 bariere merg , 1 bariera si 3 port NU merg. Cand tastez comanda /og nu se deschide , degeaba. O sa postez aici comanda si tot ce tine de ele , daca ma puteti ajuta v-as fi recunoscator. Merg doar barrierls si HQTatt

  if(strcmp(cmd, "/opengate", true) == 0 || strcmp(cmd, "/og", true) == 0)
    {
	    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            if (PlayerToPoint(10.0, playerid, 1542.3541,-1627.5516,13.3828))
            {
		        SetObjectRot(barrierls, 0, 0, 270);
                SetTimer("GateTime" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The gate is now open, and will be closed in 4 seconds !");
                return 1;
            }
        }
        else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            if (PlayerToPoint(10.0, playerid, 2238.5105,2454.0935,10.8203))
            {
                SetObjectRot(barrierlv, 0, 0, 90);
                SetTimer("GateTime1" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The gate is now open, and will be closed in 4 seconds !");
                return 1;
            }
        }
        else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            if (PlayerToPoint(10.0, playerid, 1589.0651,-1636.4768,13.4254))
            {
                MoveObject(garagels, 1588.3868,-1638.2165, 9, 5);
                SetTimer("GarageLS" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The garage is now open, and will be closed in 4 seconds !");
                return 1;
            }
        }
        else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            if (PlayerToPoint(10.0, playerid, 2334.4844,2444.3457,5.6337))
            {
                MoveObject(garagelv, 2335.2814,2444.1799, -7, 5);
                SetTimer("GarageLV" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The garage is now open, and will be closed in 4 seconds !");
                return 1;
            }
        }
        else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            if (PlayerToPoint(10.0, playerid, 2292.9104,2499.2024,3.4907))
            {
                MoveObject(garagelv1, 2294,2498.5915, -4.5, 5);
                SetTimer("GarageLV1" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The garage is now open, and will be closed in 4 seconds !");
                return 1;
            }
		    else
            SCM(playerid, COLOR_GRAD4,"** You are not the destination for open the gate.");
            return 1;
		}
		else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
		{
		    if (PlayerToPoint(10.0, playerid, 1264.3992,-2047.5938,59.3001))
            {
		        SetObjectRot(hqttg, 0, 0, 0);
                SetTimer("HQTatt" ,3000 ,false);
                SendClientMessage(playerid, COLOR_GRAD6,"** The gate is now open, and will be closed in 4 seconds !");
                return 1;
            }
        }
		return 1;
	}// Czarhqq
-----------------------------------------------
public GateTime()
{
    SetObjectRot(barrierls, 0.0,90.0,90);
    return 1;
}
public GateTime1()
{
    SetObjectRot(barrierlv, 0.0,89.0,90.0);
    return 1;
}
public GarageLS()
{
    MoveObject(garagels, 1588.3868,-1638.2165,13.7, 5);
    return 1;
}
public GarageLV()
{
    MoveObject(garagelv, 2335.28149414,2444.17993164,6.96999979, 5);
    return 1;
}
public GarageLV1()
{
    MoveObject(garagelv1, 2294.00000000,2498.59155273,4.50000000, 5);
    return 1;
}
public HQTatt()
{
    SetObjectRot(hqttg, 0,270,0);
    return 1;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.