Merge pull request #38 from dusan01/features/casino-jackpots-command
Features/casino jackpots command
This commit is contained in:
commit
4b7c413ebb
@ -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 )
|
||||||
{
|
{
|
||||||
|
@ -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"\
|
||||||
|
Loading…
Reference in New Issue
Block a user