making use of TogglePlayerSetting instead of DisablePassiveMode

This commit is contained in:
Lorenc Pekaj 2018-12-27 12:51:45 +11:00
parent 30b9846d10
commit 0be53aab7c
3 changed files with 4 additions and 8 deletions

View File

@ -210,7 +210,7 @@
#define DIALOG_COMPONENTS_SELL 1200
#define DIALOG_HOUSE_SELL 1201
#define DIALOG_BUSINESS_SELL_CONFIRM 1202
#define DIALOG_PASSIVE_MODE 1203
//#define DIALOG_PASSIVE_MODE 1203
#define DIALOG_NEXT_PAGE_VIP 1204
/* ** Hooks ** */

View File

@ -198,7 +198,3 @@ stock IsPlayerSettingToggled( playerid, settingid ) {
stock IsPlayerVIPSkinToggled( playerid ) {
return p_PlayerSettings[ playerid ] { SETTING_VIPSKIN };
}
stock DisablePassiveMode( playerid ) {
return p_PlayerSettings[ playerid ] { SETTING_PASSIVE_MODE } = true;
}

View File

@ -5993,7 +5993,7 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
//p_CitySet{ playerid } = false;
p_SpawningCity{ playerid } = CITY_SF;
DisablePassiveMode( playerid );
TogglePlayerSetting( playerid, SETTING_PASSIVE_MODE, true );
p_Uptime[ playerid ] = 0;
ShowAchievement( playerid, "Registering to SF-CnR!", 1 );
p_PlayerLogged{ playerid } = true;