fix slot spamming win msg
This commit is contained in:
parent
d7c0d7c2f4
commit
0491f4eb9f
@ -627,9 +627,7 @@ stock CheckForBlackjack( tableid )
|
||||
// alert world
|
||||
if ( g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_WIN && payout > g_blackjackData[ tableid ] [ E_PAYOUT ] && payout >= 10000 ) {
|
||||
UpdateServerVariable( "blackjack_wins", 0, GetGVarFloat( "blackjack_wins" ) + ( float( payout ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT );
|
||||
foreach(new i : Player)
|
||||
{
|
||||
if ( !IsPlayerSettingToggled( i, 12 ) )
|
||||
foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) {
|
||||
SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from blackjack!", ReturnPlayerName( playerid ), playerid, cash_format( payout ) );
|
||||
}
|
||||
}
|
||||
|
@ -686,9 +686,7 @@ public OnRouletteWheelStop( rouletteid, winner )
|
||||
|
||||
// inform users
|
||||
if ( profit >= 10000 ) {
|
||||
foreach(new i : Player)
|
||||
{
|
||||
if ( !IsPlayerSettingToggled( i, 12 ) )
|
||||
foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) {
|
||||
SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from roulette!", ReturnPlayerName( playerid ), playerid, cash_format( profit ) );
|
||||
}
|
||||
}
|
||||
|
@ -287,10 +287,8 @@ public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, thir
|
||||
|
||||
// alert user
|
||||
if ( iNetWin > g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] ) {
|
||||
SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) );
|
||||
foreach(new i : Player)
|
||||
{
|
||||
if ( !IsPlayerSettingToggled( i, 12 ) )
|
||||
// SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) );
|
||||
foreach ( new i : Player ) if ( ! IsPlayerSettingToggled( i, SETTING_HIDE_GAMB_MSG ) ) {
|
||||
SendClientMessageFormatted( i, -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from the %s casino slots!", ReturnPlayerName( playerid ), playerid, cash_format( iNetWin ), g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] == 10000 ? ( "Four Dragons" ) : ( g_slotmachineData[ slotid ] [ E_ENTRY_FEE ] >= 25000 ? ( "Visage" ) : ( "Caligulas" ) ) );
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user