Quote:
Originally Posted by Criss_Angel
Quote:
Originally Posted by [GD59
Doberman™ [Styrna] ]
Ehhh, i tested, it doesn't work, can you just fix that code?:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
GivePlayerMoney(playerid, -500);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
playercash = GetPlayerMoney(playerid);
if (playercash > 0) {
GivePlayerMoney(killerid, 500);
}
else
{
}
}
return 1;
}
|
try changing the } else {
to
|
I don't think that would change something... :S