Merge pull request #38 from dusan01/features/casino-jackpots-command

Features/casino jackpots command
This commit is contained in:
Lorenc Pekaj 2019-06-11 13:42:12 +10:00 committed by GitHub
commit 4b7c413ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -248,6 +248,21 @@ hook OnPlayerDeath( playerid, killerid, reason )
return 1; 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 ** */ /* ** Callbacks ** */
public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, third_combo ) public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, third_combo )
{ {

View File

@ -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"/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"/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" ); ""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"/job{FFFFFF} - Shows your job.\n"\
""COL_GREY"/911{FFFFFF} - Calls the emergency services.\n"\ ""COL_GREY"/911{FFFFFF} - Calls the emergency services.\n"\
""COL_GREY"/placehit{FFFFFF} - Places a hit on a specified player.\n"\ ""COL_GREY"/placehit{FFFFFF} - Places a hit on a specified player.\n"\