Money on register

This commit is contained in:
Dusan 2019-06-17 11:41:11 +02:00
parent ec06a00f38
commit 51946b9ff0

View File

@ -94,7 +94,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
p_Uptime[ playerid ] = 0; p_Uptime[ playerid ] = 0;
ShowAchievement( playerid, "Registering to SF-CnR!", 1 ); ShowAchievement( playerid, "Registering to SF-CnR!", 1 );
p_PlayerLogged{ playerid } = true; p_PlayerLogged{ playerid } = true;
SetPlayerCash( playerid, 0 ); SetPlayerCash( playerid, 5000 );
SetPlayerScore( playerid, 0 ); SetPlayerScore( playerid, 0 );
p_Kills[ playerid ] = 1; p_Kills[ playerid ] = 1;
p_Deaths[ playerid ] = 1; p_Deaths[ playerid ] = 1;
@ -375,7 +375,7 @@ stock SavePlayerData( playerid, bool: logout = false )
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 )
bQuitToAvoid = true; bQuitToAvoid = true;
#if defined __cloudy_event_system #if defined __cloudy_event_system
if ( IsPlayerInEvent( playerid ) ) if ( IsPlayerInEvent( playerid ) )
bQuitToAvoid = false; bQuitToAvoid = false;