Need help with OnPlayerTakeDamage
#9

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
   if(issuerid != INVALID_PLAYER_ID)
   {
      PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
   }
   if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
   {
      SetPlayerHealth(playerid, 0.0);
      GameTextForPlayer(playerid, "PWNED", 5000, 3);
      GameTextForPlayer(issuerid, "[HEADSHOT]", 5000, 3);
   }
   return 1;
}
Reply


Messages In This Thread
Need help with OnPlayerTakeDamage - by Nabster - 13.02.2015, 15:28
Re: Need help with OnPlayerTakeDamage - by Rog - 13.02.2015, 15:30
Re: Need help with OnPlayerTakeDamage - by Nabster - 13.02.2015, 15:32
Re: Need help with OnPlayerTakeDamage - by Nabster - 13.02.2015, 15:37
Re: Need help with OnPlayerTakeDamage - by Rog - 13.02.2015, 15:39
Re: Need help with OnPlayerTakeDamage - by JonathanFeitosa - 13.02.2015, 17:38
Re: Need help with OnPlayerTakeDamage - by MBilal - 13.02.2015, 18:24
Re: Need help with OnPlayerTakeDamage - by Nabster - 14.02.2015, 02:22
Re: Need help with OnPlayerTakeDamage - by ReD_HunTeR - 14.02.2015, 04:55

Forum Jump:


Users browsing this thread: 2 Guest(s)