passive mode is now automatically enabled
This commit is contained in:
parent
16fd59d78a
commit
4ae2a86512
@ -19,7 +19,7 @@
|
||||
#define CP_BANK_MENU_LS ( 5 )
|
||||
#define CP_PAINTBALL ( 6 )
|
||||
#define CP_AMMUNATION_0 ( 7 )
|
||||
#define CP_LUMBERJACK ( 8 )
|
||||
//#define CP_LUMBERJACK ( 8 )
|
||||
#define CP_FIGHTSTYLE ( 9 )
|
||||
#define CP_AMMUNATION_1 ( 10 )
|
||||
#define CP_AMMUNATION_2 ( 11 )
|
||||
|
@ -30,7 +30,7 @@ static stock
|
||||
g_PlayerSettings [ MAX_SETTINGS ] [ 24 ] = {
|
||||
{ "Prevent Bail Offers" }, { "Prevent Event Teleports" }, { "Prevent Gang Invites" }, { "Prevent Chat Prefixes" }, { "Prevent Ransom Offers" },
|
||||
{ "Prevent Auto-Save" }, { "Display Connection Log" }, { "Display Hitmarker" }, { "Set V.I.P Skin" }, { "Hide Total Coin Bar" }, { "Hide Last Donor Text" },
|
||||
{ "Manual Pickup Weapon" }, { "Passive Mode" }
|
||||
{ "Manual Pickup Weapon" }, { "Prevent Passive Mode" }
|
||||
},
|
||||
bool: p_PlayerSettings [ MAX_PLAYERS ] [ MAX_SETTINGS char ]
|
||||
;
|
||||
|
@ -1943,7 +1943,6 @@ public OnGameModeInit()
|
||||
CreateDynamicPickup( 337, 2, -2744.6367, 1264.8502, 11.77030 ); // Spade @Mining
|
||||
CreateDynamicPickup( 337, 2, 589.440800, 869.86900, -42.4973 ); // Spade @Mining
|
||||
CreateDynamicPickup( 337, 2, -1998.7056, 1777.7448, 43.73860 ); // Spade @Alcatraz
|
||||
// CreateDynamicPickup( 341, 2, -2069.1431, 1788.9657, 43.7386 ); // Chainsaw @Alcatraz
|
||||
|
||||
CreateDynamicPickup( 371, 2, 1318.92200, 2002.7311, 1200.250 ); // Parachute @Shamal
|
||||
CreateDynamicPickup( 371, 2, -1745.2754, 59.301500, 866.4556 ); // Parachute @Veloxity
|
||||
@ -23228,7 +23227,7 @@ stock DisablePlayerSpawnProtection( playerid )
|
||||
|
||||
stock SetPlayerPassiveMode( playerid )
|
||||
{
|
||||
if ( ! IsPlayerSettingToggled( playerid, SETTING_PASSIVE_MODE ) )
|
||||
if ( IsPlayerSettingToggled( playerid, SETTING_PASSIVE_MODE ) )
|
||||
return 0;
|
||||
|
||||
// reset any labels etc
|
||||
@ -23244,7 +23243,7 @@ stock SetPlayerPassiveMode( playerid )
|
||||
|
||||
stock IsPlayerPassive( playerid )
|
||||
{
|
||||
return IsPlayerSettingToggled( playerid, SETTING_PASSIVE_MODE ) && ! p_WantedLevel[ playerid ] && p_Class[ playerid ] != CLASS_POLICE && ! p_PassiveModeDisabled{ playerid };
|
||||
return ! IsPlayerSettingToggled( playerid, SETTING_PASSIVE_MODE ) && ! p_WantedLevel[ playerid ] && p_Class[ playerid ] != CLASS_POLICE && ! p_PassiveModeDisabled{ playerid };
|
||||
}
|
||||
|
||||
stock ResetPlayerPassiveMode( playerid, bool: passive_disabled = false )
|
||||
|
Loading…
Reference in New Issue
Block a user