Guest User

Untitled

a guest
Aug 23rd, 2016
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. /* Insta-kill Headshot by Saint */
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5.  
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n-------------------------------");
  11.     print("   Insta-kill Headshot by Saint  ");
  12.     print("---------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. #endif
  22.  
  23. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
  24. {
  25.     if(issuerid != INVALID_PLAYER_ID)
  26.     {
  27.         switch(bodypart)
  28.         {
  29.             case BODY_PART_HEAD: SetPlayerHealth(playerid, 0);
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment