saving id who shooted who.
#1

Код:
CMD:heal(playerid, params[])
{
        new id;
	if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Error: USAGE: heal id");
	SetPlayerHealth(id, 100.0);
}
public OnPlayerTakeDamage(playerid, damagedid, amount, weaponid, bodypart)
{
	if (weaponid == 24)
	{
		hel[damagedid] -= 33;
		tmpScore[playerid] += 3;
	}
//if damageid killed tmpScore[playerid] += score[playerid].
//tmpScore = 0;
//if damageid healed tmpScore[playerid] = 0;
}
Give player score if the damageid is killed in life in which playerid attacked him. If he is healed by healer
so no score to playerid on death after being healed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)