Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. stock void DEBUG_PrintButtons(int buttons) {
  2. char button_text[128];
  3. Format(button_text, sizeof(buttons), "|");
  4. if (buttons & IN_ATTACK)
  5. Format(button_text, sizeof(buttons), "IN_ATTACK|");
  6. if (buttons & IN_JUMP)
  7. Format(button_text, sizeof(buttons), "%IN_JUMP|");
  8. if (buttons & IN_DUCK)
  9. Format(button_text, sizeof(buttons), "%IN_DUCK|");
  10. if (buttons & IN_FORWARD)
  11. Format(button_text, sizeof(buttons), "%IN_FORWARD|");
  12. if (buttons & IN_BACK)
  13. Format(button_text, sizeof(buttons), "%IN_BACK|");
  14. if (buttons & IN_USE)
  15. Format(button_text, sizeof(buttons), "%IN_USE|");
  16. if (buttons & IN_CANCEL)
  17. Format(button_text, sizeof(buttons), "%IN_CANCEL|");
  18. if (buttons & IN_LEFT)
  19. Format(button_text, sizeof(buttons), "%IN_LEFT|");
  20. if (buttons & IN_RIGHT)
  21. Format(button_text, sizeof(buttons), "%IN_RIGHT|");
  22. if (buttons & IN_MOVELEFT)
  23. Format(button_text, sizeof(buttons), "%IN_MOVELEFT|");
  24. if (buttons & IN_MOVERIGHT)
  25. Format(button_text, sizeof(buttons), "%IN_MOVERIGHT|");
  26. if (buttons & IN_ATTACK2)
  27. Format(button_text, sizeof(buttons), "%IN_ATTACK2|");
  28. if (buttons & IN_RUN)
  29. Format(button_text, sizeof(buttons), "%IN_RUN|");
  30. if (buttons & IN_RELOAD)
  31. Format(button_text, sizeof(buttons), "%IN_RELOAD|");
  32. if (buttons & IN_ALT1)
  33. Format(button_text, sizeof(buttons), "%IN_ALT1|");
  34. if (buttons & IN_ALT2)
  35. Format(button_text, sizeof(buttons), "%IN_ALT2|");
  36. if (buttons & IN_SCORE)
  37. Format(button_text, sizeof(buttons), "%IN_SCORE|");
  38. if (buttons & IN_SPEED)
  39. Format(button_text, sizeof(buttons), "%IN_SPEED|");
  40. if (buttons & IN_ZOOM)
  41. Format(button_text, sizeof(buttons), "%IN_ZOOM|");
  42. if (buttons & IN_WEAPON1)
  43. Format(button_text, sizeof(buttons), "%IN_WEAPON1|");
  44. if (buttons & IN_WEAPON2)
  45. Format(button_text, sizeof(buttons), "%IN_WEAPON2|");
  46. if (buttons & IN_BULLRUSH)
  47. Format(button_text, sizeof(buttons), "%IN_BULLRUSH|");
  48. if (buttons & IN_GRENADE1)
  49. Format(button_text, sizeof(buttons), "%IN_GRENADE1|");
  50. if (buttons & IN_GRENADE2)
  51. Format(button_text, sizeof(buttons), "%IN_GRENADE2|");
  52. if (buttons & IN_ATTACK3)
  53. Format(button_text, sizeof(buttons), "%IN_ATTACK3");
  54. LogMessage("%s", button_text);
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement