01.04.2013, 01:11
Here you go
Edit: fixed the code
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid,playerid,reason); //Sending the death msg SetPlayerChatBubble(playerid, "XC", 0xFFFF0000, 100.0, 3000); if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score { SetPlayerScore(killerid, GetPlayerScore(killerid) + 2); //Giving +2 score to the killer GivePlayerMoney(killerid, 100); //Giving 100$ to the killer GivePlayerMoney(playerid, -100); //taking 100$ from the player that died SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); } return 1; }