17.07.2011, 00:36
Gracias miguel eso me sirvio pero me salia un error del GivePlayerScore pero lo renplase por SetPlayerScore
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if((Suicidio[playerid] == true) && (killerid == INVALID_PLAYER_ID))
SendDeathMessage(playerid, playerid, 200);
else
{
new cash = GetPlayerMoney(playerid);
SendDeathMessage(playerid, killerid, reason);
if(cash > 0) GivePlayerMoney(killerid, cash);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
ResetPlayerMoney(playerid);
Suicidio[playerid] = false;
return 1;
}