Subplugin Submission [ZP] Addon: Lottery v2.3
Posted: Tue Nov 23, 2021 12:37 am
[ZP] Addon: Lottery v2.3
By Kiske
--| Description |--
This lottery had 2 modes of games (define by CVAR)
Default: 0
0: Each player can bet a number between 0 and 200 (define by CVAR), at the end of the round, a number between 0 and 200 (define by CVAR) will be showed, if somebody played that number, and HUD message will be sent to everybody announcing that "X" person won, that person will recieve 200 AmmoPacks (define by CVAR).
If nobody played that number, an HUD message will be sent to everybody announcing that nobody won.
1: Each player can bet AmmoPacks, and a number between 0 and 200 (define by CVAR), at the end of the round, a number between 0 and 200 (define by CVAR) will be showed, if somebody played that number, and HUD message will be sent to everybody announcing that "X" person won, that person will recieve AmmoPacks Bet x3 (define by CVAR).
If nobody played that number, an HUD message will be sent to everybody announcing that nobody won.
Important: One Person Online = Plugin Disabled
Only it works with 2 or more Online Players.
--| CVARS |--
PHP Code:
cvar_number_max 200 // Max number to bet
cvar_reward_ammos_for_win // Ammo packs you will win if you are right
zp_lot_ammopacks_bet_on 0 // Mode Game -- Default 0
zp_lot_multiplier_ammos_for_win 3.0 // AmmoPacks you will win if you are right
--| Modules and Includes Required |--
Quote:
amxmodx
zombieplague
--| Changelog |--
Quote:
v1.0: Plugin Release.
v1.1: Add Already Bet.
v1.2: Add Number Bet.
v1.4: Add CVARS.
v1.5: Add Message.
v1.7: Add Stock.
v1.9: Add ML Support.
v2.0: Add Two Mode Games.
v2.3: Bug Fix! -- When One Online Player = Plugin Bug, now is Plugin Disabled.
--| Multilingual |--
Quote:
[EN] After
[ES] Kiske
[PL] MmikiM
[NL] crazyeffect
[DE] D o o m
[LV] NiHiLaNTh
[RU] NiHiLaNTh
[RO] dorin2oo7
[LT] hleV
Multilingual Thread: http://forums.alliedmods.net/showthread.php?t=101236
--| Thanks To |--
Quote:
meTaLiCroSS
Starsailor
.zip
By Kiske
--| Description |--
This lottery had 2 modes of games (define by CVAR)
Default: 0
0: Each player can bet a number between 0 and 200 (define by CVAR), at the end of the round, a number between 0 and 200 (define by CVAR) will be showed, if somebody played that number, and HUD message will be sent to everybody announcing that "X" person won, that person will recieve 200 AmmoPacks (define by CVAR).
If nobody played that number, an HUD message will be sent to everybody announcing that nobody won.
1: Each player can bet AmmoPacks, and a number between 0 and 200 (define by CVAR), at the end of the round, a number between 0 and 200 (define by CVAR) will be showed, if somebody played that number, and HUD message will be sent to everybody announcing that "X" person won, that person will recieve AmmoPacks Bet x3 (define by CVAR).
If nobody played that number, an HUD message will be sent to everybody announcing that nobody won.
Important: One Person Online = Plugin Disabled
Only it works with 2 or more Online Players.
--| CVARS |--
PHP Code:
cvar_number_max 200 // Max number to bet
cvar_reward_ammos_for_win // Ammo packs you will win if you are right
zp_lot_ammopacks_bet_on 0 // Mode Game -- Default 0
zp_lot_multiplier_ammos_for_win 3.0 // AmmoPacks you will win if you are right
--| Modules and Includes Required |--
Quote:
amxmodx
zombieplague
--| Changelog |--
Quote:
v1.0: Plugin Release.
v1.1: Add Already Bet.
v1.2: Add Number Bet.
v1.4: Add CVARS.
v1.5: Add Message.
v1.7: Add Stock.
v1.9: Add ML Support.
v2.0: Add Two Mode Games.
v2.3: Bug Fix! -- When One Online Player = Plugin Bug, now is Plugin Disabled.
--| Multilingual |--
Quote:
[EN] After
[ES] Kiske
[PL] MmikiM
[NL] crazyeffect
[DE] D o o m
[LV] NiHiLaNTh
[RU] NiHiLaNTh
[RO] dorin2oo7
[LT] hleV
Multilingual Thread: http://forums.alliedmods.net/showthread.php?t=101236
--| Thanks To |--
Quote:
meTaLiCroSS
Starsailor
.zip