OnPlayerGiveDamage - Changing "amount" ?
#4

i'll give you an example ONLY:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
  if(issuerid != INVALID_PLAYER_ID)
  {
       switch(weaponid)
       {
            case 0:
            {
                  new Float:health;
                  GetPlayerHealth(playerid, health);
                  SetPlayerHealth(playerid, health-5);
            }
       }
   }
   return 1;
}
Just an example
Reply


Messages In This Thread
OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 10:58
Re: OnPlayerGiveDamage - Changing "amount" ? - by _Khaled_ - 26.10.2012, 10:59
Re: OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 11:03
Re: OnPlayerGiveDamage - Changing "amount" ? - by Jarnu - 26.10.2012, 11:08
Re: OnPlayerGiveDamage - Changing "amount" ? - by B-Matt - 26.10.2012, 11:08
Re: OnPlayerGiveDamage - Changing "amount" ? - by 'Pawno. - 26.10.2012, 13:42
Re: OnPlayerGiveDamage - Changing "amount" ? - by SuperViper - 26.10.2012, 14:29

Forum Jump:


Users browsing this thread: 3 Guest(s)