Advertisement
Matt34

Untitled

Jun 27th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. // ---------------------------------------Krixes Self Bloodbag Start------------------------------------
  2. _mags = magazines player;
  3. _weps = weapons player;
  4.  
  5. // Krixes Self Bloodbag
  6. if ("ItemBloodbag" in _mags) then {
  7. hasBagItem = true;
  8. } else { hasBagItem = false;};
  9. if((speed player <= 1) && hasBagItem && _canDo) then {
  10. if (s_player_selfBloodbag < 0) then {
  11. s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Fixes\player_selfbloodbag.sqf","",5,false,true,"", ""];
  12. };
  13. } else {
  14. player removeAction s_player_selfBloodbag;
  15. s_player_selfBloodbag = -1;
  16. };
  17.  
  18. if((speed player <= 1) && _canDo) then {
  19. if (s_player_toggle < 0) then {
  20. s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
  21. };
  22. } else {
  23. player removeAction s_player_toggle;
  24. s_player_toggle = -1;
  25. };
  26.  
  27. //Matt's booby trap
  28. if (("ItemEtool" in _weps) && ("PartWoodPile" in _mags)) then {
  29. hasBombItem = true;
  30. } else { hasBombItem = false;};
  31. if (("ItemEtool" in weapons player) && ("PartWoodPile" in magazines player) && (speed player <= 1) && hasBombItem && _canDo)) then {
  32. hasBomb = true;
  33. } else {
  34. hasBomb = false;
  35. };
  36. if ((hasBomb) && ("HandGrenade_West" in magazines player)) then {
  37. if (s_player_makeBomb < 0) then {
  38. s_player_makeBomb = player addAction [("<t color=""#c30000"">" + ("Place Exploding Booby Trap") +"</t>"),"scripts\boobytrap.sqf","",5,false,true,"",""];
  39. };
  40. } else {
  41. player removeAction s_player_makeBomb;
  42. s_player_makeBomb = -1;
  43. };
  44. // ---------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement