14.05.2014, 08:46
Quote:
Go learn your operators, please. It says: if killerid is not invalid (hence, valid), then add score. This is correct.
|
So you're saying I don't need this?:
Код:
return SendClientMessage(playerid, -1, "You committed sucide");
Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPVarInt(playerid, "Dead", 1); SendDeathMessage(killerid, playerid, reason); // Shows the kill in the killfeed if(killerid != INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "You committed sucide"); else { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); } return 1; }