Damage system help!
#9

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
{
new
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));
shot[playerid] ++;
if (IsHurt[playerid] == 0)
{
new string[64];
format(string,sizeof(string),"(( Has been injured %d , Weapon: %s ))", shot[playerid], weaponName);
new Text3D:wounded;
wounded = Create3DTextLabel(string, 0xAA3333AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(wounded, playerid, 0.0, 0.0, 0.7);
Update3DTextLabelText(wounded, 0xAA3333AA, string);
}
}
return 1;
}
Reply


Messages In This Thread
Damage system help! - by TheSnicky - 14.08.2014, 19:41
Re: Damage system help! - by Faisal_khan - 14.08.2014, 19:45
Re: Damage system help! - by TheSnicky - 14.08.2014, 19:45
Respuesta: Damage system help! - by Cepillado - 14.08.2014, 19:50
Re: Damage system help! - by Faisal_khan - 14.08.2014, 19:52
Re: Damage system help! - by TheSnicky - 14.08.2014, 21:29
Re: Damage system help! - by TheSnicky - 14.08.2014, 21:32
Respuesta: Damage system help! - by Cepillado - 14.08.2014, 21:35
Re: Respuesta: Damage system help! - by TheSnicky - 14.08.2014, 21:36
Re: Damage system help! - by TheSnicky - 14.08.2014, 21:45

Forum Jump:


Users browsing this thread: 3 Guest(s)