Do you even what sscanf is? Sscanf is used to split a string. You do not need it at all.
The bad thing you do is loop through all the players and if there are 50 players, it will add 50 kills to the killer and 50 deaths to the player. It will also cause runtime error about index out of bounds if you do not check if the killer is valid. Your problem is that you get the player's score and add +1000, not the killer's one.
pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
death[playerid]++;
if( killerid != INVALID_PLAYER_ID )
{
kill[ killerid ]++;
SetPlayerScore( killerid, GetPlayerScore( killerid ) + 1 );
SetPlayerMoney( killerid, GetPlayerMoney( killerid ) + 1000 );
SendClientMessage( killerid, COLOR_YELLOW, "You recieved +1000 money & +1 score." );
}
return 1;
}