Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp( "/opengate", cmdtext, true) == 0) {
- else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if (IsPlayerInRangeOfPoint(playerid, 7,88.7840,1920.2301,17.8962))
- {
- if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
- SetTimer("GateClose2", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyg = 1;
- }
- else if (IsPlayerInRangeOfPoint(playerid, 7,109.6989,1920.6976,18.6153))
- {
- if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
- MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
- SetTimer("GateClose2", 7000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
- format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
- armyg2 = 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement