jó kellene legyen elvileg. ám, nekem is crashelt (régen), de már nem, mer más a mód. :angry:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
ResetPlayerMoney(playerid);
}
else
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(killerid, GetPlayerScore(killerid) +10);
if(GetPlayerMoney(playerid) > 0)
{
GivePlayerMoney(killerid, GetPlayerMoney(playerid));
ResetPlayerMoney(playerid);
}
}
return 1;
}