else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (IsPlayerInRangeOfPoint(playerid, 15,-2696.60,-43.57,7.25)) { if(fbig == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; } MoveDynamicObject(fbigate,-2696.60,-43.57,7.25, 2.5); SetTimer("GateClose3", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds."); format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); fbig = 1; } else { SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY,"* You don't have a remote control."); return 1; } return 1; } |
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (IsPlayerInRangeOfPoint(playerid, 15,-2696.60,-43.57,7.25)) { if(fbig == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; } MoveDynamicObject(fbigate,-2696.60,-43.57,-0.71, 2.5); SetTimer("GateClose3", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds."); format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); fbig = 1; } else { SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use."); return 1; } } else { SendClientMessage(playerid, COLOR_GREY,"* You don't have a remote control."); return 1; } } |