Gate move CMD
#2

this will help ya
pawn Код:
CMD:dooropen(playerid, params[])
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been opened.");
        }
        return 1;
    }
CMD:doorclose(playerid, params[])
    {
    door0 = CreateObject(1495,1487.00000000,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (1)
    door1 = CreateObject(1495,1483.79003906,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (2)
    door2 = CreateObject(1495,1479.85998535,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
    door3 = CreateObject(1495,1467.06701660,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been closed.");
        }
                return 1;
}
Reply


Messages In This Thread
Gate move CMD - by yarin0600 - 26.09.2012, 13:23
Re: Gate move CMD - by XtremeR - 26.09.2012, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)