26.09.2012, 00:33
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!
EDIT: My normal permission from the GM:
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;
}
pawn Код:
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Oficer.");