Event system related

Criminals who engage with cops then leave the game are no longer considered quitting to avoid.
This commit is contained in:
Cloudy 2019-06-02 15:03:19 +03:00 committed by GitHub
parent 80b252e9fb
commit eb318f0467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,11 @@ stock SavePlayerData( playerid, bool: logout = false )
new
bool: bQuitToAvoid = false;
#if defined __cloudy_event_system
if ( ( IsPlayerCuffed( playerid ) || IsPlayerTazed( playerid ) || IsPlayerTied( playerid ) || p_LeftCuffed{ playerid } || p_QuitToAvoidTimestamp[ playerid ] > g_iTime ) && ! IsPlayerInEvent( playerid ) )
#else
if ( IsPlayerCuffed( playerid ) || IsPlayerTazed( playerid ) || IsPlayerTied( playerid ) || p_LeftCuffed{ playerid } || p_QuitToAvoidTimestamp[ playerid ] > g_iTime )
#endif
bQuitToAvoid = true;
format( Query, sizeof( Query ), "UPDATE `USERS` SET `SCORE`=%d,`ADMINLEVEL`=%d,`OWNEDHOUSES`=%d,`KILLS`=%d,`DEATHS`=%d,`VIP_PACKAGE`=%d,`OWNEDCARS`=%d,`LASTLOGGED`=%d,`VIP_EXPIRE`=%d,`LAST_SKIN`=%d,`BURGLARIES`=%d,`UPTIME`=%d,`ARRESTS`=%d,`CITY`=%d,`METH`=%d,`SODA`=%d,`ACID`=%d,`GAS`=%d,",
@ -415,4 +419,4 @@ stock SavePlayerData( playerid, bool: logout = false )
stock GetPlayerAccountID( playerid ) return p_AccountID[ playerid ];
stock IsPlayerLoggedIn( playerid ) return p_PlayerLogged{ playerid };
stock IsPlayerLoggedIn( playerid ) return p_PlayerLogged{ playerid };