making use of TogglePlayerSetting instead of DisablePassiveMode
This commit is contained in:
parent
30b9846d10
commit
0be53aab7c
@ -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 ** */
|
||||
|
@ -197,8 +197,4 @@ stock IsPlayerSettingToggled( playerid, settingid ) {
|
||||
|
||||
stock IsPlayerVIPSkinToggled( playerid ) {
|
||||
return p_PlayerSettings[ playerid ] { SETTING_VIPSKIN };
|
||||
}
|
||||
|
||||
stock DisablePassiveMode( playerid ) {
|
||||
return p_PlayerSettings[ playerid ] { SETTING_PASSIVE_MODE } = true;
|
||||
}
|
@ -1293,7 +1293,7 @@ public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float: fX, Float:
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return ShowPlayerHelpDialog( playerid, 2000, "You cannot damage an innocent player's vehicle unless they have wanted players alongside them!" ), 0;
|
||||
@ -2049,7 +2049,7 @@ public OnPlayerText( playerid, text[ ] )
|
||||
}
|
||||
}
|
||||
DCC_SendChannelMessageFormatted( discordGeneralChan, "**%s(%d):** %s", ReturnPlayerName( playerid ), playerid, text ); // p_Class[ playerid ] == CLASS_POLICE ? 12 : 4
|
||||
|
||||
|
||||
foreach ( new iPlayer : Player )
|
||||
{
|
||||
if ( IsPlayerSettingToggled( iPlayer, SETTING_CHAT_ID ) )
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user