Raised This Month: $ Target: $400
 0% 

Roll the dice, just numbers in chat window.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Duffboy2013
Junior Member
Join Date: Oct 2013
Old 10-08-2013 , 22:10   Roll the dice, just numbers in chat window.
Reply With Quote #1

I want to give prizes away on my server this weekend. (CS: GO)

I want a /rtd /rollthedice mod as simple as can be.

All it displays after typing the command /rtd is a RANDOM number from 1-100 by the players name. (NO special effects)

Even more advanced, some way to limit it 1 (/rtd) per 10 minutes or a settable cool down.

I cant think of another way to give out prizes?

Searched, but all mods are for giving you special abilities, and I dont want that, just a random number roll.
Duffboy2013 is offline
Duffboy2013
Junior Member
Join Date: Oct 2013
Old 10-09-2013 , 06:05   Re: Roll the dice, just numbers in chat window.
Reply With Quote #2

Cant be that hard, seems pretty basic to me?

Someone want a donation to create it for me?

Steam CSGO keys/cases, Paypal Cash?
Duffboy2013 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-09-2013 , 07:08   Re: Roll the dice, just numbers in chat window.
Reply With Quote #3

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.
Attached Files
File Type: sp Get Plugin or Get Source (randomnumberroll.sp - 320 views - 3.1 KB)
__________________

Last edited by ddhoward; 10-09-2013 at 07:25.
ddhoward is offline
Duffboy2013
Junior Member
Join Date: Oct 2013
Old 10-10-2013 , 07:06   Re: Roll the dice, just numbers in chat window.
Reply With Quote #4

Just saw this, going to work with it tomorrow and I will for SURE shoot you a donation. Thanks for the response!

EDIT: Got it installed and working, Just sent you $15. Thanks again for the response, REALLY appreciate it!!!

Last edited by Duffboy2013; 10-11-2013 at 01:41.
Duffboy2013 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode