Chainsaw System
#2

Try this out.

Quote:

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
{
new
infoString[128],
weaponName[24],
victimName[MAX_PLAYER_NAME],
attackerName[MAX_PLAYER_NAME];

GetPlayerName(playerid, victimName, sizeof (victimName));
GetPlayerName(issuerid, attackerName, sizeof (attackerName));

GetWeaponName(weaponid, weaponName, sizeof (weaponName));

format(infoString, sizeof(infoString), "%s has made %.0f damage to %s, weapon: %s, bodypart: %d", attackerName, amount, victimName, weaponName, bodypart);
SendClientMessageToAll(-1, infoString);
}
return 1;
}

Reply


Messages In This Thread
Chainsaw System - by Xportaler - 24.06.2017, 09:35
Re: Chainsaw System - by ItzColaBoi - 24.06.2017, 09:43
Re: Chainsaw System - by Xportaler - 24.06.2017, 09:50
Re: Chainsaw System - by coool - 24.06.2017, 11:20
Re: Chainsaw System - by ItzColaBoi - 24.06.2017, 11:48
Re: Chainsaw System - by JasonRiggs - 24.06.2017, 12:18
Re: Chainsaw System - by Xportaler - 24.06.2017, 18:38
Re: Chainsaw System - by Pottus - 24.06.2017, 19:18
Re: Chainsaw System - by NaS - 24.06.2017, 19:29
Re: Chainsaw System - by Threshold - 24.06.2017, 23:20

Forum Jump:


Users browsing this thread: 5 Guest(s)