From 20e55bea91648d93722767fbc629e1b855d964e5 Mon Sep 17 00:00:00 2001 From: Lorenc Date: Mon, 2 Apr 2018 00:17:53 +1000 Subject: [PATCH] cash card sends a global msg --- pawno/include/irresistible/features/cash_cards.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pawno/include/irresistible/features/cash_cards.inc b/pawno/include/irresistible/features/cash_cards.inc index 3359e26..9d88a4a 100644 --- a/pawno/include/irresistible/features/cash_cards.inc +++ b/pawno/include/irresistible/features/cash_cards.inc @@ -80,7 +80,7 @@ thread OnPlayerRedeemCashCard( playerid, card_id, card_value ) // alert and give cash GivePlayerCash( playerid, card_value ); - SendServerMessage( playerid, "You have redeemed a "COL_GOLD"%s"COL_WHITE" cash card.", number_format( card_value ) ); + SendClientMessageToAllFormatted( COLOR_GREY, "[SERVER]"COL_WHITE" %s(%d) has redeemed a "COL_GOLD"%s"COL_WHITE" cash card.", ReturnPlayerName( playerid ), playerid, number_format( card_value ) ); // insert into database mysql_single_query( sprintf( "UPDATE `CASH_CARDS` SET `USES` = `USES` + 1 WHERE `ID`=%d", card_id ) );