From a51a89769c9ffe21a5adef76cb8fe153f6b3f03f Mon Sep 17 00:00:00 2001 From: Dusan Date: Mon, 10 Jun 2019 21:45:08 +0200 Subject: [PATCH] Jackpots command --- .../cnr/features/visage/slot_machines.pwn | 15 +++++++++++++++ gamemodes/sf-cnr.pwn | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn b/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn index adfe253..3f74d0d 100644 --- a/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn +++ b/gamemodes/irresistible/cnr/features/visage/slot_machines.pwn @@ -248,6 +248,21 @@ hook OnPlayerDeath( playerid, killerid, reason ) return 1; } +/* ** Commands ** */ +CMD:jackpots( playerid, params[ ] ) +{ + format( szBigString, sizeof( szBigString ), "The Visage Casino\t"COL_GREEN"%s\n\ + 4 Dragons Casino\t"COL_GREEN"%s\n\ + Caligulas Casino\t"COL_GREEN"%s", + cash_format( g_casinoPoolData[ 2 ] [ E_POOL ] ), + cash_format( g_casinoPoolData[ 1 ] [ E_POOL ] ), + cash_format( g_casinoPoolData[ 0 ] [ E_POOL ] ) + ); + + ShowPlayerDialog( playerid, DIALOG_NULL, DIALOG_STYLE_TABLIST, ""COL_GOLD"Jackpots", szBigString, "Okay", "" ); + return 1; +} + /* ** Callbacks ** */ public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, third_combo ) { diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 3301570..dbb0664 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -5198,7 +5198,8 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) ""COL_GREY"/robstore{FFFFFF} - Displays the key to press in-order to rob a store.\n"\ ""COL_GREY"/pdjail{FFFFFF} - Displays the time until jail cells are available for raiding.\n"\ ""COL_GREY"/banks{FFFFFF} - Displays the time until certain banks are available for robbing.\n" ); - strcat( szCMDS, ""COL_GREY"/stoprob{FFFFFF} - Stops your current robbery.\n"\ + strcat( szCMDS, ""COL_GREY"/jackpots{FFFFFF} - Displays current jackpots in all casinos.\n"\ + ""COL_GREY"/stoprob{FFFFFF} - Stops your current robbery.\n"\ ""COL_GREY"/job{FFFFFF} - Shows your job.\n"\ ""COL_GREY"/911{FFFFFF} - Calls the emergency services.\n"\ ""COL_GREY"/placehit{FFFFFF} - Places a hit on a specified player.\n"\