14.05.2014, 04:14
Doesnt add score whern someone dies by another player.
Код:
public OnPlayerDeath(playerid, killerid, reason) { // Add 1 to this killer's score. We must check it is valid first. if(killerid != INVALID_PLAYER_ID) { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); } SetPVarInt(playerid, "Dead", 1); SendDeathMessage(killerid, playerid, reason); // Shows the kill in the killfeed return 1; }