SA-MP Forums Archive
Filterscript with faction permissions from GM? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscript with faction permissions from GM? (/showthread.php?tid=380559)



Filterscript with faction permissions from GM? - MrSnapp - 26.09.2012

Hey there,

I have this filterscript (credits to the creator) and it has no permissions for the opening of the cop doors. So is it possible to somehow put my permissions from SAPD from my GM into the filterscript or hook it up? I will list the command below!

pawn Код:
if (strcmp("/dooropen", cmdtext, true, 10) == 0)
    {
        if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
        {
            MoveObject(door1,1558.1387939453, -1677.8883056641, 1722.1081542969,1.50);
            MoveObject(door2,1562.7950439453, -1677.8798828125, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
        {
            MoveObject(door3,1549.6147460938, -1691.4772949219, 1722.1081542969,1.50);
            MoveObject(door4,1554.2923583984, -1691.4328613281, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
        {
            MoveObject(door5,1560.1309774200, -1651.7266845703, 1719.5637207031,1.50);
        }
        return 1;
    }
    if (strcmp("/doorclose",cmdtext, true, 10) == 0)
    {
        if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
        {
            MoveObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50);
            MoveObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
        {
            MoveObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50);
            MoveObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
        {
            MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
        }
        return 1;
    }
    return 0;
}
EDIT: My normal permission from the GM:

pawn Код:
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");



Re: Filterscript with faction permissions from GM? - MrSnapp - 26.09.2012

SOLVED!