Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object_event_add(InGameMenuController, ev_create, 0, '
  2.    a = global.spyhack;
  3.    b = "Spy hack";
  4.    if a == 1 { b = "Spy hack ON"; }
  5.    if a == 0 { b = "Spy hack OFF"; }
  6.    menu_addlink(b, "
  7.       if a == 0 { global.spyhack = 1; }
  8.       if a == 1 { global.spyhack = 0; }
  9.    ");
  10. ');
  11.  
  12. object_event_add(InGameMenuController, ev_create, 0, '
  13.    a = global.healthhack;
  14.    b = "Health hack";
  15.    if a == 1 { b = "Health hack ON"; }
  16.    if a == 0 { b = "Health hack OFF"; }
  17.    menu_addlink(b, "
  18.       if a == 0 { global.healthhack = 1; }
  19.       if a == 1 { global.healthhack = 0; }
  20.    ");
  21. ');
  22.  
  23. object_event_add(PlayerControl,ev_create,0,'
  24. global.spyhack = 0;
  25. global.healthhack = 0;
  26. ');
  27.  
  28. object_event_add(Character,ev_draw,0,'
  29. if global.spyhack == 1 {
  30. image_alpha = 1;
  31. invisible = 0;
  32. stabbing = 0;
  33. cloakAlpha = 1;
  34. cloak = 0;
  35. }
  36. if global.healthhack == 1 {
  37. draw_set_alpha(1);
  38. draw_healthbar(round(x)-10, round(y)-30, round(x)+10, round(y)-25,hp*100/maxHp,c_black,c_red,c_green,0,true,true);
  39. }
  40. ');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement