Raised This Month: $66 Target: $400
 16% 

Advanced Roll The Dice (v2.5 RC4)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   EKS (167)
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-06-2005 , 10:45   Advanced Roll The Dice (v2.5 RC4)
Reply With Quote #1

Advanced Roll The Dice

Author: Striker (original plugin & idea by EJL)
Version: 2.5 RC 4
Release Date: 05/01/2006
Tested on: AMXX 1.71+ (Linux)
Credits to: EJL, BreadDawson & DarkBeatz, MattOGM, Noizza, XxAvalanchexX, SilverTide
CVS: http://cvs.tcwonline.org/viewcvs.cgi...r/rollthedice/

Quote:
Changelog:
  • v2.5 RC 4
    • fixed lots of runtime errors
    • fixed WIN MONEY message (negative amount)
    • fixed stuck bug in Smoking Drunkard Prize
    • fixed (again) kill message for Rambo and Luke Skywalker - not tested!
    • fixed bug where no timelimit was set for Zeusmode and Godmode
    • fixed bug where a player don't get XP
    • fixed bug where a player still go blind after "GO BLIND" Prize
  • v2.5 RC 3
    • fixed a prize bug caused by a typo
    • fixed monstermod support
    • fixed "hit by lightning" message after you lose Health
    • fixed "win money" message
    • fixed WIN 50 CRABS Prize - it should work now
    • fixed runtime- and native error in event_damage function
    • fixed bug where you still go blind after "GO BLIND" Prize
    • fixed crash bug
    • fixed lightsaber and Rambo kill message - not tested!
    • added CVAR for Debug Mode
    • added CVAR to specify which team(s) are able roll the dice (idea from 'NS Roll the Dice')
    • added two CVARS to enable/disable the prizes you want
    • added some info textmessages
    • added one say command
    • added good prize: PARA ACTION (RAMBO)
    • rewrote prize system
    • rewrote check_weapon function
    • rewrote event_damage function
    • edited WIN HEALTH Prize - you now get 'additional' 200 Health but max. 255
    • optimized code (not everything)
  • v2.5 RC 2
    • added a cvar to switch between random- and static-times (prizes)
    • added cvars to set static times
    • added a cvar for admins which will disable amx_dice_delay for them
    • added good prize: UNLIMITED AMMO
    • added bad prize: LOSE HEALTH (HIT BY LIGHTNING)
    • added bad prize: GO BLIND
    • edited RACE CAR Prize (you now get 150 Health, too)
  • v2.5 RC 1
    • plugin renamed to "Advanced Roll The Dice"
    • added good prize: FULL EQUIPMENT
    • added some info textmessages
    • added delay so that you can not roll directly after someone else
    • readded monstmod support (amx_dice_monstermod <1|0>)
    • rewrote some stuff
    • removed tfc support
    • changed CVAR-Name for Dice-Delay
    • edited WON MONEY Prize (you now get 'additional' money)
    • edited 250 HEALTH Prize (you now get 'additional' health)
  • v2.4f
    • temporarly removed vault support
    • removed amx_dice_default Admin Command
    • fixed sv_maxspeed bug
    • fixed amx_dice <on | off> bug
  • v2.4e
    • removed monstermod support
    • removed PODBOT support
    • all times of rewards are now RANDOM
    • renamed and relocated INI-File
    • removed/renamed spanish codesnipes (say commands are still there)
    • added require_module
    • modified code
    • fixed (again) some typos
  • v2.4d
    • fixed amx_givexp bug (player don't revive the won xp)
  • v2.4c
    • fixed some bugs (wild ride and native errors)
    • added two rollthedice commands: "roll the dice" and "roll teh dice"
  • v2.4b
    • fixed some mistakes in the grammer and some typos
  • v2.4a
    • Changed 50 Snark Monsters To 50 Headcrabs
    • Added a few translations so as I knew what stuff did
    • Will add a check for monstermod soon, this was just a quick fix to get it working 100% with no errors
  • v2.4
    • Added snark monster prize
    • Check Team for burning
    • WC3 / Superhero Check
    • Some CVARs changed
    • New prizes process (called premios)
    • Added BreadDawson fixes
  • v2.3
    • Glowing Removed (it's no funny)
    • Multimod compatibility LOST ONLY CS/CZ (sorry)
    • Added this prizes: xp prizes, money prizes, invisibility nogod, burning, nightclub
    • New FX Sounds
    • NoStuck for ZEUSMode & NoClip
    • Rewritten chance code
    • Rewritten prizes code
  • v2.2
    • fixed invisible bug
    • fixed stuck on bug
  • v2.1 & before Original by Ludwig van
Description:
This is another roll the dice plugin with some different and more advanced options.
There are gambling limits, admin controls, lots of FX and new features.

Just test it!

Required Modules:
- Fun
- Engine
- Counter-Strike
- CSX

Admin Cvars/Commands:
  • amx_dice <on|off>
    Type: COMMAMD
    Default: on
    Description: Turns dice games on or off
  • amx_dice_delay <180>
    Type: CVAR
    Default: 180
    Description: Sets the time players have to wait before gambling again
    (Set either in amxx.cfg or by amx_cvar command)
  • amx_dice_monstermod <1|0>
    Type: CVAR
    Default: 0
    Description: Enable/Disable Monstermod support
    (You need activate monstermod to use this option)
  • amx_dice_admin <1|0>
    Type: CVAR
    Default: 0
    Description: Enable/Disable amx_dice_delay for admins
    (use ADMIN_ACCESS to set the flag)
  • amx_dice_statictimes <1|0>
    Type: CVAR
    Default: 0
    Description: Switch between static- and random-times for prizes

    Use this CVARS when 'amx_dice_statictimes' is ENABLED (all times in seconds):
    • amx_dice_nightclubtime <seconds>
      Default: 15
      Description: Sets the prize-time of NightClub
    • amx_dice_slaptime <seconds>
      Default: 12
      Description: Sets the prize-time of Slap Disease
    • amx_dice_oldmantime <seconds>
      Default: 10
      Description: Sets the prize-time of Old Man
    • amx_dice_humanbombtime <seconds>
      Default: 15
      Description: Sets the prize-time of Human TimeBomb
    • amx_dice_drunkardtime <seconds>
      Default: 20
      Description: Sets the prize-time of Smoking Drunkard
    • amx_dice_nocliptime <seconds>
      Default: 10
      Description: Sets the prize-time of Noclip
    • amx_dice_godmodetime <seconds>
      Default: 15
      Description: Sets the prize-time of Godmode
    • amx_dice_zeusmodetime <seconds>
      Default: 20
      Description: Sets the prize-time of Zeusmode
    • amx_dice_lukeskywalkertime <seconds>
      Default: 20
      Description: Sets the prize-time of Luke Skywalker
    • amx_dice_racecartime <seconds>
      Default: 17
      Description: Sets the prize-time of Race Car
    • amx_dice_invisiblegodtime <seconds>
      Default: 17
      Description: Sets the prize-time of Invisible God
    • amx_dice_invisibletime <seconds>
      Default: 17
      Description: Sets the prize-time of Invisible Normal
    • amx_dice_wildridetime <seconds>
      Default: 3
      Description: Sets the prize-time of Wild Ride
  • amx_dice_debug <0>
    Default: 0
    Description: Enable/Disable Debug mode.
    • 0 - Debug mode disabled
    • 1 - Normal Debug mode
    • 2 - Advanced Debug Mode
  • amx_dice_playmode <1>
    Default: 1
    Description: Specify which team(s) are able to roll the dice.
    • 1 - ALL
    • 2 - Only T
    • 3 - Only CT
  • amx_dice_badprizes <abc..>
    Default: abcdefghijklm
    Description: Enable all BAD PRIZES you want.
    • a = Win 100 Chickens
    • b = Nightclub
    • c = Deadly Slap Disease
    • d = Burning
    • e = Wild Ride
    • f = Old Man
    • g = Human Timebomb
    • h = Smoking Drunkard
    • i = Lose XP
    • j = Bankrupt
    • k = Win 50 Crabs (or Monsters)
    • l = Hit by Lightning
    • m = Go Blind
  • amx_dice_goodprizes <abc..>
    Default: abcdefghijklm
    Description: Enable all GOOD PRIZES you want.
    • a = No Clip
    • b = Godmode
    • c = Zeusmode
    • d = Luke Skywalker
    • e = Win Health
    • f = Race Car
    • g = Invisible God
    • h = Invisible Normal
    • i = Win XP
    • j = Win Money
    • k = Full Equipment
    • l = Unlimited Ammo
    • m = Para Action (Rambo)
Client Commands:
say roll the dice
say rollthedice
say roll teh dice
say i feel lucky
say rtd
say dados
say suerte

Upcoming Release:
  • Advanced Roll the Dice v2.5 RC 5
Attached Files
File Type: zip dice_stuff.zip (785.9 KB, 28244 views)
File Type: rar monster_plugin_v3.0.rar (685.3 KB, 18671 views)
File Type: sma Get Plugin or Get Source (roll_the_dice.sma - 27021 views - 115.8 KB)
File Type: rar rtd_complete-pack.rar (724.1 KB, 20109 views)
__________________

Last edited by Striker; 03-01-2008 at 07:58.
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-06-2005 , 10:45  
Reply With Quote #2

- Screenshots coming soon -
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 09-06-2005 , 11:22  
Reply With Quote #3

I repost my question in the (this) correct thread ;).

One small issue on this latest version (2.4d):
After quite a lot of time (~2hours, maptime on my server is ~600mins), the hudmessages (displaying the diced effect incl. counter if applicable), disappeared completely for about 10 rounds. Effect were still working, but the only information came from the plugins amx_chat output. In these ~10 minutes, about 3 times a dice was rolled successfully (amx_dicedelay is set 300).
No errors in the amxx-logs.
Guenhwyvar is offline
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-06-2005 , 13:30  
Reply With Quote #4

sorry, but I can't reproduce your problem ;(
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 09-06-2005 , 15:21  
Reply With Quote #5

its a pity, because the problem became permanent. to be more exact, two examples:

1.
ppl rolls the dice, won red race car. a chat-message appears, that he won (red race..). no hudmessage. he is glowing now. the "meep" sound is played to all. he walks like the others (no speedup). he glows until he is dead or the round ends (in this example: he glowed for ~30 seconds. no counter appeared in the hud (like it does sometimes).

2.
ppl wins noclip. textmessage, no hudmessage. he gets noclip. noclip holds until end of the round.

3. (this one is working)
player looses all his money. chat message + hud messages. sound (laughing) is played to all. he lost his money.

Code:
19:14:48 Currently loaded plugins:          name               version  author            file             status             Admin Base         1.55     AMXX Dev Team     admin.amxx       running           Admin Commands     1.55     AMXX Dev Team     admincmd.amxx    running           Admin Help         1.55     AMXX Dev Team     adminhelp.amxx   running           Menus Front-End    1.55     AMXX Dev Team     menufront.amxx   running           Commands Menu      1.55     AMXX Dev Team     cmdmenu.amxx     running           Players Menu       1.55     AMXX Dev Team     plmenu.amxx      running           Maps Menu          1.55     AMXX Dev Team     mapsmenu.amxx    running           Admin Chat         1.55     AMXX Dev Team     adminchat.amxx   running           Anti Flood         1.55     AMXX Dev Team     antiflood.amxx   running           Info. Messages     1.55     AMXX Dev Team     imessage.amxx    running           Admin Votes        1.55     AMXX Dev Team     adminvote.amxx   running           TimeLeft           1.55     AMXX Dev Team     timeleft.amxx    running           Stats Configurati  1.55     AMXX Dev Team     statscfg.amxx    running           Restrict Weapons   1.55     AMXX Dev Team     restmenu.amxx    running           StatsX             1.55     AMXX Dev Team     statsx.amxx      running           CS Misc. Stats     1.55     AMXX Dev Team     miscstats.amxx   running           CS Stats Logging   1.55     AMXX Dev Team     stats_logging.a  running  19:14:48 muha               1.0      Amxx rulez        loadingsound.am  running           Sank Sounds Plugi  1.3.5    Luke Sankey, Whi  sank_sounds.amx  running           AntiCamping Advan  1.01c    Homicide          anticamping2_av  running           Chat Responder     0.7      JGHG              chatresponder.a  running           HeadShot Master    0.2      Leichenklaus      hs_master.amxx   running           Grenade Control    1.1      Willyumyum & Rya  grenade_control  running           Weapon Arena       1.9.5    JGHG              weaponarena.amx  running           Ultimate Gore      1.3.3    JTP10181/mike_ca  amx_gore_ultima  running           Play or Be Kicked  1.1      Brad Jones        pbk.amxx         running           FPM Script         3.0      Cult of the Dead  fpm.amxx         running           Check Shots        1.1      jsauce            check_shots.amx  running           Team Balancer      1.7b6    Ptahhotep         team_balancer.a  running           Roll The Dice Plu  2.4d     MiniPeLoS,BreadD  amx_ejl_dice.am  running           30 plugins, 30 running

Code:
19:15:24 Currently loaded modules:          name                    version  author                       Fun                     1.55     AMX Mod X Dev Team           Engine                  1.55     AMX Mod X Dev Team           FakeMeta                1.55     AMX Mod X Dev Team           CStrike                 1.55     AMX Mod X Dev Team           CSX                     1.55     AMX Mod X Dev Team           5 modules

I did one think with the sma, and, if this is the problem, shame on me, Ill never install another plugin: I made a search'n'replace and switched ", 0.03, 0.62," with ", 0.03, 0.73," (39 times) to get the hudmessages repositioned. I will replace it with the original now, just to be sure. But: earlier this day and yesterday, the (modified) plugin worked well, so that I thought my changes couldnt be the reason.
Guenhwyvar is offline
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-06-2005 , 16:20  
Reply With Quote #6

hm... the changes "shouldn't" be the problem...

just to be sure: use the "unmodifed" plugin from the first post and test it 1 day ;)
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-13-2005 , 14:08  
Reply With Quote #7

v2.4e released!

Code:
Changelog:

 *  2.4e:  - removed monstermod support
 *			- removed PODBOT support
 *			- all times of rewards are now RANDOM
 *			- renamed and relocated INI-File
 *	 	  - removed/renamed spanish codesnipes (say commands are still there)
 *			- added require_module
 *			- modified code
 *			- fixed (again) some typos
(download @ first post)
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 09-13-2005 , 17:25  
Reply With Quote #8

Nice, thanx for work!

Now, it seems to work on my 1.55/1.18 server and the effects look like on 1.01. Only two issues, one small, one little bigger:

1.
In my amxx.cfg I have the following line:
Code:
amx_dice "off"
On mapchange, the plugin is active anyway.

2.
When I stop the plugin (amx_dice "off" in console), the plugin confirms stopping (dados off or similar) but, sv_maxspeed is set to "0".

(Edit: Iam using the original version 2.4e, compiled for 1.55 running on a win machine)
Guenhwyvar is offline
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-13-2005 , 19:53  
Reply With Quote #9

thanks for the detailed bug-report.

I will fix this problem as soon as possible (~ Friday).
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Striker
Senior Member
Join Date: Mar 2004
Location: Germany
Old 09-14-2005 , 17:53  
Reply With Quote #10

v2.4f released!

Code:
 *  Changelog:
 *
 *  		v2.4f:
 *                      - temporarly removed vault support
 *                      - removed amx_dice_default Admin Command
 *                      - fixed sv_maxspeed bug
 *                      - fixed amx_dice <on | off> bug
(download @ first post)
__________________
Striker is offline
Send a message via ICQ to Striker Send a message via MSN to Striker
Reply


Thread Tools
Display Modes

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 07:14.


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