About OnplayerDeath
#4

pawn Код:
new
    Killing_Spree[ MAX_PLAYERS ]
;

// OnPlayerConnect:
Killing_Spree[ playerid ] = 0;

// OnPlayerDeath:
Killing_Spree[ playerid ] = 0;
if( killerid != INVALID_PLAYER_ID )
{
    Killing_Spree[ killerid ]++;
    switch( Killing_Spree[ killerid ] )
    {
        case 1: SetPlayerScore( killerid, GetPlayerScore( killerid ) + 1 );
        case 2 .. 60: SetPlayerScore( killerid, GetPlayerScore( killerid ) + 60 );
    }
}
Assuming you meant that on first killing spree, the player gets 1 score and from 2 to 60, the player gets 60 score.
Reply


Messages In This Thread
About OnplayerDeath - by donhu789 - 12.10.2013, 14:01
Re: About OnplayerDeath - by Konstantinos - 12.10.2013, 14:03
Re: About OnplayerDeath - by donhu789 - 12.10.2013, 14:04
Re: About OnplayerDeath - by Konstantinos - 12.10.2013, 14:08
Re: About OnplayerDeath - by donhu789 - 12.10.2013, 14:09
Re: About OnplayerDeath - by Konstantinos - 12.10.2013, 14:10
Re: About OnplayerDeath - by donhu789 - 12.10.2013, 14:12
Re: About OnplayerDeath - by Pottus - 12.10.2013, 14:13
Re: About OnplayerDeath - by donhu789 - 12.10.2013, 14:15
Re: About OnplayerDeath - by Konstantinos - 12.10.2013, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)