15.12.2009, 13:40
Hi, change the gamemode as standard, the LVDM my way, I added another respawns and dying gives crash the game I watched hundreds of times and can not find the error. I am a bit messed and not know what else to do ... I need help please
I put a party that I think are wrong to see if you can do something =)
I put a party that I think are wrong to see if you can do something =)
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
playercash = GetPlayerMoney(playerid);
if (playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
else
{
}
}
return 1;
}

