Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SNIPERSCHADEN 80
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
- {
- new Float:leb;
- GetPlayerHealth(playerid,leb);
- SetPlayerHealth(playerid,leb+amount);
- GetPlayerHealth(playerid,leb);
- SetPlayerHealth(playerid,leb-SNIPERSCHADEN);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment