20.01.2014, 14:41
I am having a bit of fun playing around with movable objects in SA:MP such as doors. I have an office in the LVPD which I have two sliding doors. I want to restrict these doors for: Faction[playerid] = 1, Faction[playerid] = 2, SFPDRank >= 6, SFPDDivision[playerid] = 1, SFPDDivision[playerid] = 2. Is their anyway someone could edit this to make this come true?:
REPPING for an answer to this.
Код:
if(Faction[playerid] == 1 || Faction[playerid] == 2) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 144.8837, 222.4300, 1023.4175) && dStatus == false) { MoveDynamicObject(SFPDDoor1, 144.8837, 220.9900, 1023.4175, 1); dStatus = true; } else if(IsPlayerInRangeOfPoint(playerid, 5.0, 144.8837, 222.4300, 1023.4175) && dStatus == true) { MoveDynamicObject(SFPDDoor1, 144.8837, 222.4300, 1023.4175, 1); dStatus = false; } return 1; } if(Faction[playerid] == 1 || Faction[playerid] == 2 ) // This is where it should be restricted for Faction[playerid] = 1, Faction[playerid] = 2, SFPDRank >= 6, SFPDDivision[playerid] = 1, SFPDDivision[playerid] = 2 { if(IsPlayerInRangeOfPoint(playerid, 5.0, 136.92101, 253.46291, 1023.41882) && dStatus == false) { MoveDynamicObject(SFPDMegan1, 137.9010, 253.4629, 1023.4188, 1); MoveDynamicObject(SFPDMegan2, 132.8810, 253.4629, 1023.4188, 1); dStatus = true; } else if(IsPlayerInRangeOfPoint(playerid, 5.0, 136.92101, 253.46291, 1023.41882) && dStatus == true) { MoveDynamicObject(SFPDMegan1, 136.92101, 253.46291, 1023.41882, 1); MoveDynamicObject(SFPDMegan2, 133.92101, 253.46291, 1023.41882, 1); dStatus = false; } return 1; } return SendClientMessage(playerid, COLOR_NEWBIE, "You don't have access to this door!"); }