Advertisement
Matt34

Untitled

Jun 25th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. // ---------------------------------------Krixes Self Bloodbag Start------------------------------------
  2. _mags = magazines player;
  3.  
  4. // Krixes Self Bloodbag
  5. if ("ItemBloodbag" in _mags) then {
  6. hasBagItem = true;
  7. } else { hasBagItem = false;};
  8. if((speed player <= 1) && hasBagItem && _canDo) then {
  9. if (s_player_selfBloodbag < 0) then {
  10. s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Fixes\player_selfbloodbag.sqf","",5,false,true,"", ""];
  11. };
  12. } else {
  13. player removeAction s_player_selfBloodbag;
  14. s_player_selfBloodbag = -1;
  15. };
  16.  
  17. if((speed player <= 1) && _canDo) then {
  18. if (s_player_toggle < 0) then {
  19. s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf"];
  20. };
  21. } else {
  22. player removeAction s_player_toggle;
  23. s_player_toggle = -1;
  24. };
  25. // ---------------------------------------Krixes Self Bloodbag End------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement