OnPlayerTakeDamage.
#1

Hi,

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if( issuerid != INVALID_PLAYER_ID )
{
GetPlayerHealth( playerid, HealthSave[ issuerid ] );
SetPlayerHealth( playerid, HealthSave[ issuerid ]-floatround( LEVEL[ issuerid ]/2 )  );
}
return 1;
}
Whats bad in this code? when i shoot to player he is invinsible? player level is 1.
Reply


Messages In This Thread
OnPlayerTakeDamage. - by budelis - 28.10.2012, 19:19
Re: OnPlayerTakeDamage. - by PrawkC - 28.10.2012, 19:30
Re: OnPlayerTakeDamage. - by budelis - 28.10.2012, 19:48
Re: OnPlayerTakeDamage. - by PrawkC - 28.10.2012, 20:02
Re: OnPlayerTakeDamage. - by budelis - 28.10.2012, 20:29
Re: OnPlayerTakeDamage. - by PrawkC - 28.10.2012, 20:35
Re: OnPlayerTakeDamage. - by budelis - 29.10.2012, 06:49

Forum Jump:


Users browsing this thread: 1 Guest(s)