Update account.pwn
This commit is contained in:
parent
eb318f0467
commit
5a750d91e9
@ -373,12 +373,13 @@ stock SavePlayerData( playerid, bool: logout = false )
|
|||||||
new
|
new
|
||||||
bool: bQuitToAvoid = false;
|
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 )
|
if ( IsPlayerCuffed( playerid ) || IsPlayerTazed( playerid ) || IsPlayerTied( playerid ) || p_LeftCuffed{ playerid } || p_QuitToAvoidTimestamp[ playerid ] > g_iTime )
|
||||||
#endif
|
|
||||||
bQuitToAvoid = true;
|
bQuitToAvoid = true;
|
||||||
|
|
||||||
|
#if defined __cloudy_event_system
|
||||||
|
if ( IsPlayerInEvent( playerid ) )
|
||||||
|
bQuitToAvoid = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
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,",
|
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,",
|
||||||
GetPlayerScore( playerid ), p_AdminLevel[ playerid ],
|
GetPlayerScore( playerid ), p_AdminLevel[ playerid ],
|
||||||
|
Loading…
Reference in New Issue
Block a user