allow players over the vip limit to utilize their houses/vehicles
This commit is contained in:
parent
bd597eb945
commit
cdfe84671d
@ -392,10 +392,12 @@ CMD:h( playerid, params[ ] )
|
|||||||
if ( p_accountSecurityData[ playerid ] [ E_ID ] && ! p_accountSecurityData[ playerid ] [ E_VERIFIED ] && p_accountSecurityData[ playerid ] [ E_MODE ] != SECURITY_MODE_DISABLED )
|
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)" );
|
return SendError( playerid, "You must be verified in order to use this feature. "COL_YELLOW"(use /verify)" );
|
||||||
|
|
||||||
|
#if VIP_ALLOW_OVER_LIMIT == false
|
||||||
if ( ! p_VIPLevel[ playerid ] && p_OwnedHouses[ playerid ] > GetPlayerHouseSlots( playerid ) && ! strmatch( params, "sell" ) ) {
|
if ( ! p_VIPLevel[ playerid ] && p_OwnedHouses[ playerid ] > GetPlayerHouseSlots( playerid ) && ! strmatch( params, "sell" ) ) {
|
||||||
ResetSpawnLocation( playerid );
|
ResetSpawnLocation( playerid );
|
||||||
return SendError( playerid, "Please renew your V.I.P or sell this home to match your house allocated limit (/h sell)." );
|
return SendError( playerid, "Please renew your V.I.P or sell this home to match your house allocated limit (/h sell)." );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
new
|
new
|
||||||
ID = p_InHouse[ playerid ];
|
ID = p_InHouse[ playerid ];
|
||||||
|
@ -245,6 +245,7 @@ CMD:v( playerid, params[ ] )
|
|||||||
if ( p_accountSecurityData[ playerid ] [ E_ID ] && ! p_accountSecurityData[ playerid ] [ E_VERIFIED ] && p_accountSecurityData[ playerid ] [ E_MODE ] != SECURITY_MODE_DISABLED )
|
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)" );
|
return SendError( playerid, "You must be verified in order to use this feature. "COL_YELLOW"(use /verify)" );
|
||||||
|
|
||||||
|
#if VIP_ALLOW_OVER_LIMIT == false
|
||||||
// force hoarders to sell
|
// force hoarders to sell
|
||||||
if ( ! p_VIPLevel[ playerid ] && p_OwnedVehicles[ playerid ] > GetPlayerVehicleSlots( playerid ) && ! strmatch( params, "sell" ) && ! strmatch( params, "bring" ) ) {
|
if ( ! p_VIPLevel[ playerid ] && p_OwnedVehicles[ playerid ] > GetPlayerVehicleSlots( playerid ) && ! strmatch( params, "sell" ) && ! strmatch( params, "bring" ) ) {
|
||||||
for( new i = 0; i < p_OwnedVehicles[ playerid ]; i++ ) if ( g_vehicleData[ playerid ] [ i ] [ E_OWNER_ID ] == p_AccountID[ playerid ] ) {
|
for( new i = 0; i < p_OwnedVehicles[ playerid ]; i++ ) if ( g_vehicleData[ playerid ] [ i ] [ E_OWNER_ID ] == p_AccountID[ playerid ] ) {
|
||||||
@ -252,6 +253,7 @@ CMD:v( playerid, params[ ] )
|
|||||||
}
|
}
|
||||||
return SendError( playerid, "Please renew your V.I.P or sell this vehicle to match your vehicle allocated limit. (/v sell/bring only)" );
|
return SendError( playerid, "Please renew your V.I.P or sell this vehicle to match your vehicle allocated limit. (/v sell/bring only)" );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
new
|
new
|
||||||
vehicleid = GetPlayerVehicleID( playerid ),
|
vehicleid = GetPlayerVehicleID( playerid ),
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
#define ICM_NAME ( 7 )
|
#define ICM_NAME ( 7 )
|
||||||
#define ICM_VEH_SLOT ( 8 )
|
#define ICM_VEH_SLOT ( 8 )
|
||||||
|
|
||||||
|
#define VIP_ALLOW_OVER_LIMIT ( true )
|
||||||
|
|
||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
enum E_IC_MARKET_DATA
|
enum E_IC_MARKET_DATA
|
||||||
{
|
{
|
||||||
|
@ -14124,10 +14124,12 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
|||||||
if ( ! response )
|
if ( ! response )
|
||||||
return ShowPlayerSpawnMenu( playerid );
|
return ShowPlayerSpawnMenu( playerid );
|
||||||
|
|
||||||
|
#if VIP_ALLOW_OVER_LIMIT == false
|
||||||
if ( ! p_VIPLevel[ playerid ] && p_OwnedHouses[ playerid ] > GetPlayerHouseSlots( playerid ) ) {
|
if ( ! p_VIPLevel[ playerid ] && p_OwnedHouses[ playerid ] > GetPlayerHouseSlots( playerid ) ) {
|
||||||
ResetSpawnLocation( playerid );
|
ResetSpawnLocation( playerid );
|
||||||
return SendError( playerid, "Please renew your V.I.P or sell this home to match your house allocated limit (/h sell)." );
|
return SendError( playerid, "Please renew your V.I.P or sell this home to match your house allocated limit (/h sell)." );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
new x = 0;
|
new x = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user