Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock void DEBUG_PrintButtons(int buttons, const char[] message) {
- char button_text[128];
- Format(button_text, sizeof(buttons), "|");
- if (buttons & IN_ATTACK)
- Format(button_text, sizeof(buttons), "%sIN_ATTACK|", button_text);
- if (buttons & IN_JUMP)
- Format(button_text, sizeof(buttons), "%sIN_JUMP|", button_text);
- if (buttons & IN_DUCK)
- Format(button_text, sizeof(buttons), "%sIN_DUCK|", button_text);
- if (buttons & IN_FORWARD)
- Format(button_text, sizeof(buttons), "%sIN_FORWARD|", button_text);
- if (buttons & IN_BACK)
- Format(button_text, sizeof(buttons), "%sIN_BACK|", button_text);
- if (buttons & IN_USE)
- Format(button_text, sizeof(buttons), "%sIN_USE|", button_text);
- if (buttons & IN_CANCEL)
- Format(button_text, sizeof(buttons), "%sIN_CANCEL|", button_text);
- if (buttons & IN_LEFT)
- Format(button_text, sizeof(buttons), "%sIN_LEFT|", button_text);
- if (buttons & IN_RIGHT)
- Format(button_text, sizeof(buttons), "%sIN_RIGHT|", button_text);
- if (buttons & IN_MOVELEFT)
- Format(button_text, sizeof(buttons), "%sIN_MOVELEFT|", button_text);
- if (buttons & IN_MOVERIGHT)
- Format(button_text, sizeof(buttons), "%sIN_MOVERIGHT|", button_text);
- if (buttons & IN_ATTACK2)
- Format(button_text, sizeof(buttons), "%sIN_ATTACK2|", button_text);
- if (buttons & IN_RUN)
- Format(button_text, sizeof(buttons), "%sIN_RUN|", button_text);
- if (buttons & IN_RELOAD)
- Format(button_text, sizeof(buttons), "%sIN_RELOAD|", button_text);
- if (buttons & IN_ALT1)
- Format(button_text, sizeof(buttons), "%sIN_ALT1|", button_text);
- if (buttons & IN_ALT2)
- Format(button_text, sizeof(buttons), "%sIN_ALT2|", button_text);
- if (buttons & IN_SCORE)
- Format(button_text, sizeof(buttons), "%sIN_SCORE|", button_text);
- if (buttons & IN_SPEED)
- Format(button_text, sizeof(buttons), "%sIN_SPEED|", button_text);
- if (buttons & IN_ZOOM)
- Format(button_text, sizeof(buttons), "%sIN_ZOOM|", button_text);
- if (buttons & IN_WEAPON1)
- Format(button_text, sizeof(buttons), "%sIN_WEAPON1|", button_text);
- if (buttons & IN_WEAPON2)
- Format(button_text, sizeof(buttons), "%sIN_WEAPON2|", button_text);
- if (buttons & IN_BULLRUSH)
- Format(button_text, sizeof(buttons), "%sIN_BULLRUSH|", button_text);
- if (buttons & IN_GRENADE1)
- Format(button_text, sizeof(buttons), "%sIN_GRENADE1|", button_text);
- if (buttons & IN_GRENADE2)
- Format(button_text, sizeof(buttons), "%sIN_GRENADE2|", button_text);
- if (buttons & IN_ATTACK3)
- Format(button_text, sizeof(buttons), "%sIN_ATTACK3", button_text);
- PrintToChatAll("%s: %s", message, button_text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement