[pawn]new gHeadValue[MAX_PLAYERS];[/pawn]
[pawn]
public OnPlayerSpawn(playerid)
{
gHeadValue[playerid] = 300; //Set player head value 300
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid != INVALID_PLAYER_ID) //Verify if the player has died by another player.
{
GivePlayerMoney(killerid, gHeadValue[playerid]); //Give to killer the worth of player head...
gHeadValue[killerid] += 1000; //Set killer head value = value + 1000
//msgs
SendClientMessage(killerid, -1, "You have killed +1 noob, so, now your head worth +$1.000");
SendClientMessage(playerid, -1, "You died, now your head start into the original price($300)");
}
return 1;
}[/pawn]