Merge pull request #45 from dusan01/features/money-on-register
$5000 for new player
This commit is contained in:
commit
2581f9e96a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user