07.10.2016, 19:11
You want to add something like this:
Because you haven't gone into detail about exactly what you wanted, this is as close as i could get to what I believe you wanted.
Код:
public OnPlayerDeath( playerid, killerid, reason ) { if( playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID ) { if( GetPlayerWantedLevel( playerid ) > 0 ) // They are a wanted player { PlayerData[ killerid ][ cScore ]++; // Replace the PlayerData with whatever your enum is /* Update Player Total Score ( Maybe this is what you meant ? ) */ SetPlayerScore( playerid, PlayerData[ killerid ][ cScore ] + PlayerData[ killerid ][ rScore ] ); // Not sure if you wanted to add the points together to form the total score? } } return 1; }