DrPawn

Dr.Pawn >WaffenSchadenBeispiel<

Oct 3rd, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #define SNIPERSCHADEN 80
  2. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  3. {
  4. if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
  5. {
  6. new Float:leb;
  7. GetPlayerHealth(playerid,leb);
  8. SetPlayerHealth(playerid,leb+amount);
  9. GetPlayerHealth(playerid,leb);
  10. SetPlayerHealth(playerid,leb-SNIPERSCHADEN);
  11. }
  12. return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment