SA-MP Forums Archive
OnplayerTakeDamage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnplayerTakeDamage (/showthread.php?tid=494558)



OnplayerTakeDamage - Greaper - 13.02.2014

Anyone can help me Please



Error


Re: OnplayerTakeDamage - DarkLored - 13.02.2014

try this

pawn Код:
if(issuerid != INVALID_PLAYER_ID)
{
   if(weaponid == 34 && bodypart == 9)
   {
       SetPlayerHealth(playerid,0.0);
   }
   return 1;
}



Re: OnplayerTakeDamage - Threshold - 14.02.2014

You need to be using the 0.3z version of pawno which can be found in http://sa-mp.com/download

If you read this: https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
you will notice that the 'bodypart' parameter should only be added once you are using the 0.3z server package. This will not work for 0.3x and earlier.