Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <OPSP>
- #if defined FILTERSCRIPT
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
- {
- if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
- {
- SetPlayerHealth(playerid, 0.0);
- }
- if(bodypart == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)
- }
- else
- {
- ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1);
- }
- if(bodypart == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)
- }
- else
- {
- ApplyAnimation(playerid, "ped", "FALL_collapse", 4.1, 0, 0, 0, 0, 0, 1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment