Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 16th, 2010 | Syntax: C++ | Size: 0.97 KB | Hits: 47 | Expires: Never
Copy text to clipboard
  1. _crate = _this select 0;
  2.  
  3. if (side player == EAST) then
  4. {
  5.   _crate setVehicleInit "opfcrates = opfcrates + [this]; hint format ['OPFOR has captured a crate! OPFOR now has %1 crates!', count opfcrates];"; processinitcommands;
  6.   if (_crate in blucrates) then
  7.   {
  8.     _crate setVehicleInit "blucrates = blucrates - [this];"; processinitcommands;
  9.   };
  10.   if ((count opfcrates) == 3) then
  11.   {
  12.     _crate setVehicleInit "hint 'OPFOR has captured all crates! OPFOR wins!';"; processinitcommands;
  13.   };
  14. };
  15.  
  16. if (side player == WEST) then
  17. {
  18.   _crate setVehicleInit "blucrates = blucrates + [this]; hint format ['BLUFOR has captured a crate! BLUFOR now has %1 crates!', count blucrates];"; processinitcommands;
  19.   if (_crate in opfcrates) then
  20.   {
  21.     _crate setVehicleInit "opfcrates = opfcrates - [this];"; processinitcommands;
  22.   };
  23.   if ((count blucrates) == 3) then
  24.   {
  25.     _crate setVehicleInit "hint 'BLUFOR has captured all crates! BLUFOR wins!';"; processinitcommands;
  26.   };
  27. };