Advertisement
Matt34

Untitled

Jun 27th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. if (("ItemEtool" in weapons player) && ("PartWoodPile" in _mags)) then {
  3. hasBombItem = true;
  4. } else {
  5. hasBombItem = false;
  6. };
  7. if ((speed player <= 1) && hasBombItem)) then {
  8. hasBomb = true;
  9. } else {
  10. hasBomb = false;
  11. };
  12. if ((hasBomb) && ("HandGrenade_West" in _mags)) then {
  13. if (s_player_makeBomb < 0) then {
  14. s_player_makeBomb = player addAction [("<t color=""#c30000"">" + ("Place Exploding Booby Trap") +"</t>"),"scripts\boobytrap.sqf","",5,false,true,"",""];
  15. };
  16. } else {
  17. player removeAction s_player_makeBomb;
  18. s_player_makeBomb = -1;
  19. }; //End Matt L's Booby Trap Toggling Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement