29.03.2013, 23:48
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // +1 Score to KillerID
GivePlayerMoney(killerid, 457); // + 100 to the killer
}
SendDeathMessage(killerid, playerid, reason); // Death Windows
GivePlayerMoney(playerid, -200); // - 100 to the player get Killed
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); // -1 Score to PlayerID
// } This goes wrong here.
return 1;
}