CMD:lockls(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* All the exits from Los-Santos locked!");
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Los Santos is currently at LockDown!");
SetDynamicObjectRot(CheckPointGates[2], 0.00000000,89.69036865,80.17822266);
CheckPointGateStatus[2] = 1;
SetDynamicObjectRot(CheckPointGates[3], 0.00000000,269.94769287,82.48538208);
CheckPointGateStatus[3] = 1;
SetDynamicObjectRot(LS1, -90.00000, 0.00000, 79.73290);
LS1S = 1;
SetDynamicObjectRot(LS2, 90.00000, 0.00000, 78.28910);
LS2S = 1;
SetDynamicObjectRot(LS3, -90.00000, 0.00000, 78.60129);
LS3S = 1;
SetDynamicObjectRot(LS4, 90.00000, 0.00000, 77.26682);
LS4S = 1;
SetDynamicObjectRot(LS5, 0.0000000,0.0000000,79.7330000);
LS5S = 1;
SetDynamicObjectRot(LS6, 0.0000000,0.0000000,78.9040000);
LS6S = 1;
SetDynamicObjectRot(LS7, 0.0000000,0.0000000,78.9040000);
LS7S = 1;
SetDynamicObjectRot(LS8, 0.0000000,270.0000000,19.9950000);
LS8S = 1;
SetDynamicObjectRot(LS9, 0.0000000,270.0000000,28.0000000);
LS9S = 1;
SetDynamicObjectRot(LS10, 0.0000000,270.0000000,154.9900000);
LS10S = 1;
SetDynamicObjectRot(LS11, 0.0000000,270.0000000,333.9900000);
LS11S = 1;
SetDynamicObjectRot(LS12, 0.0000000,270.0000000,347.9920000);
LS12S = 1;
SetDynamicObjectRot(LS13, 0.0000000,270.0000000,168.9920000);
LS13S = 1;
SetDynamicObjectRot(LS14, 0.0000000,270.0000000,344.9980000);
LS14S = 1;
SetDynamicObjectRot(LS15, 0.0000000,270.0000000,165.9980000);
LS15S = 1;
SetDynamicObjectRot(LS16, 0.0000000,270.0000000,214.9970000);
LS16S = 1;
SetDynamicObjectRot(LS17, 0.0000000,270.0000000,34.9970000);
LS17S = 1;
DestroyDynamic3DTextLabel(LS1T);
//Morha13 Advanced Gates Start - New Gate Text
LS1T = CreateDynamic3DTextLabel("This is test text!", COLOR_BLUE, 0.00000000,269.94769287,82.48538208, 12);
//Morha13 Advanced Gates End - New Gate Text
}
}
CMD:lockls(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* All the exits from Los-Santos locked!");
SendClientMessageToAll(COLOR_LIGHTBLUE, "* Los Santos is currently at LockDown!");
SetDynamicObjectRot(CheckPointGates[2], 0.00000000,89.69036865,80.17822266);
CheckPointGateStatus[2] = 1;
SetDynamicObjectRot(CheckPointGates[3], 0.00000000,269.94769287,82.48538208);
CheckPointGateStatus[3] = 1;
SetDynamicObjectRot(LS1, -90.00000, 0.00000, 79.73290);
LS1S = 1;
SetDynamicObjectRot(LS2, 90.00000, 0.00000, 78.28910);
LS2S = 1;
SetDynamicObjectRot(LS3, -90.00000, 0.00000, 78.60129);
LS3S = 1;
SetDynamicObjectRot(LS4, 90.00000, 0.00000, 77.26682);
LS4S = 1;
SetDynamicObjectRot(LS5, 0.0000000,0.0000000,79.7330000);
LS5S = 1;
SetDynamicObjectRot(LS6, 0.0000000,0.0000000,78.9040000);
LS6S = 1;
SetDynamicObjectRot(LS7, 0.0000000,0.0000000,78.9040000);
LS7S = 1;
SetDynamicObjectRot(LS8, 0.0000000,270.0000000,19.9950000);
LS8S = 1;
SetDynamicObjectRot(LS9, 0.0000000,270.0000000,28.0000000);
LS9S = 1;
SetDynamicObjectRot(LS10, 0.0000000,270.0000000,154.9900000);
LS10S = 1;
SetDynamicObjectRot(LS11, 0.0000000,270.0000000,333.9900000);
LS11S = 1;
SetDynamicObjectRot(LS12, 0.0000000,270.0000000,347.9920000);
LS12S = 1;
SetDynamicObjectRot(LS13, 0.0000000,270.0000000,168.9920000);
LS13S = 1;
SetDynamicObjectRot(LS14, 0.0000000,270.0000000,344.9980000);
LS14S = 1;
SetDynamicObjectRot(LS15, 0.0000000,270.0000000,165.9980000);
LS15S = 1;
SetDynamicObjectRot(LS16, 0.0000000,270.0000000,214.9970000);
LS16S = 1;
SetDynamicObjectRot(LS17, 0.0000000,270.0000000,34.9970000);
LS17S = 1;
DestroyDynamic3DTextLabel(LS1T);
//Morha13 Advanced Gates Start - New Gate Text
LS1T = CreateDynamic3DTextLabel("This is test text!", COLOR_BLUE, 0.00000000,269.94769287,82.48538208, 12);
//Morha13 Advanced Gates End - New Gate Text
}
return 1;
}
I wonder myself, did it give you a warning at compiling that cmd_lockls needs to return a value.
pawn Код:
|