Merge branch 'master' of github.com:zeelorenc/sf-cnr
This commit is contained in:
commit
4a77e20146
@ -846,9 +846,14 @@ CMD:stockmarkets( playerid, params[ ] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
CMD:shares( 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 );
|
return ShowPlayerShares( playerid );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CMD:astock( playerid, params[ ] )
|
CMD:astock( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
|
@ -2795,6 +2795,8 @@ CMD:changepw( playerid, params[ ] )
|
|||||||
static
|
static
|
||||||
szHashed[ 129 ], szSalt[ 25 ];
|
szHashed[ 129 ], szSalt[ 25 ];
|
||||||
|
|
||||||
|
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)" );
|
||||||
if ( !p_PlayerLogged{ playerid } ) return SendError( playerid, "You are not logged in." );
|
if ( !p_PlayerLogged{ playerid } ) return SendError( playerid, "You are not logged in." );
|
||||||
if ( isnull( params ) ) return SendUsage( playerid, "/change(pw/pass/password) [PASSWORD]" );
|
if ( isnull( params ) ) return SendUsage( playerid, "/change(pw/pass/password) [PASSWORD]" );
|
||||||
if ( strlen( params ) > 24 || strlen( params ) < 3 ) return SendError( playerid, "Your password must be indexed within 3 and 24 characters." );
|
if ( strlen( params ) > 24 || strlen( params ) < 3 ) return SendError( playerid, "Your password must be indexed within 3 and 24 characters." );
|
||||||
|
Loading…
Reference in New Issue
Block a user