Darihon

Example

Jun 6th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. if ([["ItemGoldBar",3]] call player_checkAndRemoveItems) then {
  2.     _box1 = createVehicle ["USVehicleBox",[coord1,coord2,0],[], 0, "CAN_COLLIDE"];
  3.     clearWeaponCargoGlobal _box1;
  4.     clearMagazineCargoGlobal _box1;
  5.     _box1 addWeaponCargoGlobal ["ItemGoldBar",5];
  6.     cutText[format["Box has been spawned within 5 meters"], "PLAIN DOWN"];
  7. } else {
  8.     cutText[format["U don't have the required ammount of gold.."], "PLAIN DOWN"];
  9. };
Advertisement
Add Comment
Please, Sign In to add comment