make code consistent in anti money hack module
This commit is contained in:
parent
18eb6c9ca6
commit
70b04977ca
@ -23,9 +23,11 @@ static stock
|
||||
forward OnPlayerMoneyChanged ( playerid, amount );
|
||||
|
||||
/* ** Hooks ** */
|
||||
hook OnPlayerUpdate( playerid ) {
|
||||
hook OnPlayerUpdate( playerid )
|
||||
{
|
||||
// reset the player's money if it is inaccurate
|
||||
if ( p_Cash[ playerid ] != GetPlayerMoney( playerid ) ) {
|
||||
if ( p_Cash[ playerid ] != GetPlayerMoney( playerid ) )
|
||||
{
|
||||
ResetPlayerMoney( playerid );
|
||||
GivePlayerMoney( playerid, p_Cash[ playerid ] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user