Untitled
By: a guest | Mar 16th, 2010 | Syntax:
C++ | Size: 0.97 KB | Hits: 47 | Expires: Never
_crate = _this select 0;
if (side player == EAST) then
{
_crate setVehicleInit "opfcrates = opfcrates + [this]; hint format ['OPFOR has captured a crate! OPFOR now has %1 crates!', count opfcrates];"; processinitcommands;
if (_crate in blucrates) then
{
_crate setVehicleInit "blucrates = blucrates - [this];"; processinitcommands;
};
if ((count opfcrates) == 3) then
{
_crate setVehicleInit "hint 'OPFOR has captured all crates! OPFOR wins!';"; processinitcommands;
};
};
if (side player == WEST) then
{
_crate setVehicleInit "blucrates = blucrates + [this]; hint format ['BLUFOR has captured a crate! BLUFOR now has %1 crates!', count blucrates];"; processinitcommands;
if (_crate in opfcrates) then
{
_crate setVehicleInit "opfcrates = opfcrates - [this];"; processinitcommands;
};
if ((count blucrates) == 3) then
{
_crate setVehicleInit "hint 'BLUFOR has captured all crates! BLUFOR wins!';"; processinitcommands;
};
};