Here you go, donate if you want, see my signature.
Command is sm_roll (or /roll, !roll, !sm_roll, /sm_roll in the chat)
Cvars are:
- sm_randomnumberroll_minimum - defaults to 1, sets the minimum number rollable
- sm_randomnumberroll_maximum - defaults to 100, sets the maximum number rollable
- sm_randomnumberroll_cooldown - defaults to 60, sets how long the cooldown is
- sm_randomnumberroll_cooldowntype - defaults to 0. If 0, cooldowns are specific to only that player. If 1, when a player rolls, ALL players must wait until someone else can roll.
- sm_randomnumberroll_print - defaults to 2 - if 1, the information is only put to the console. if 2, it's put in the chat. if 3, it's put into both. (NOTE: on some games, 3 will cause the messages to appear twice in the console, and 2 will act like 3 should.)
Admins with access to the override "sm_randomnumberroll_cooldownimmune" are immune to the cooldown, and can roll regardless of any cooldown. (If the override does not exist in admin_overrides.cfg, then the BAN flag is used instead.) The Console is always immune.