Advertisement
Faisal_khan

Untitled

Mar 8th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.53 KB | None | 0 0
  1.     if (strcmp( "/opengate", cmdtext, true) == 0) {
  2.     else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
  3.         {
  4.             if (IsPlayerInRangeOfPoint(playerid, 7,88.7840,1920.2301,17.8962))
  5.             {
  6.                 if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  7.                 MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
  8.                 SetTimer("GateClose2", 7000, 0);
  9.                 SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
  10.                 GetPlayerName(playerid, sendername, sizeof(sendername));
  11.                 format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
  12.                 ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  13.                 armyg = 1;
  14.             }
  15.             else if (IsPlayerInRangeOfPoint(playerid, 7,109.6989,1920.6976,18.6153))
  16.             {
  17.                 if(lvaenterg1 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  18.                 MoveDynamicObject(lvaenterg1, 96.699996948242, 1920.5999755859, 10, 1);
  19.                 SetTimer("GateClose2", 7000, 0);
  20.                 SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
  21.                 format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
  22.                 ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  23.                 armyg2 = 1;
  24.             }
  25.     return 1;
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement