From 52762c04a5888af0146c284f679b67c368f204f7 Mon Sep 17 00:00:00 2001 From: Sultan1337 <51270951+Sultan1337@users.noreply.github.com> Date: Sun, 7 Jul 2019 09:06:49 -0700 Subject: [PATCH] Update stocks.pwn adds security check on /shares so that if the acc isn't verified, he won't be able to sell those shares --- gamemodes/irresistible/cnr/features/stocks/stocks.pwn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index 8dda332..70d72ec 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -847,7 +847,12 @@ CMD:stockmarkets( playerid, params[ ] ) CMD:shares( playerid, params[ ] ) { + if ( p_accountSecurityData[ playerid ] [ E_ID ] && ! p_accountSecurityData[ playerid ] [ E_VERIFIED ] && p_accountSecurityData[ playerid ] [ E_MODE ] != SECURITY_MODE_DISABLED ) + return SendError( playerid, "You must be verified in order to use this feature. "COL_YELLOW"(use /verify)" ); + else + { return ShowPlayerShares( playerid ); + } } CMD:astock( playerid, params[ ] )