Advertisement
Reedk

|| FS || Sistema HeadShot || By Reedk

Mar 15th, 2016
2,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. /*
  2. ================================================================================
  3. $$$$$$$$$$$$$$$$$$$$Creado Por Reedk [MeScript2212 SAMP FORUM]$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$=======
  4. $$$--- Borrar Creditos = Ban u Advertencia.--$$$$$$$$$$$========================
  5. $$$Exclusivo para PawnoScript y Samp Forum!--$$$$$$$$$$$$$$$$$==============================
  6. ================================================================================
  7. */
  8. #include <a_samp>
  9. new ActivarHS;
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. ActivarHS = 1;
  14. print("\n-------------------------------------------");
  15. print(" FS Head Shot cargado con exito! |");
  16. print(" $$$$$$$ =============== $$$$$$$$ |");
  17. print(" Creado por Reedk |");
  18. print("---------------------------------------------\n");
  19. return 1;
  20. }
  21. //-------------------------- Acttivar Headshots CMD ----------------------------//
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24. if (strcmp("/activarhs", cmdtext, true, 10) == 0)
  25. {
  26. if (IsPlayerAdmin(playerid))
  27. {
  28. ActivarHS = 1;
  29. }
  30. }
  31. //------------------Desactivar HeadShot CMD ------------------------------------//
  32. if (strcmp("/desativarhs", cmdtext, true, 10) == 0)
  33. {
  34. if (IsPlayerAdmin(playerid))
  35. {
  36. ActivarHS = 0;
  37.  
  38. } return 1;
  39. }
  40. return 0;
  41. }
  42. // public que al dar un tiro en la cabeza al jugador se le ponga la vida en 0.0 no importa si tiene chaleco , ya que el chaleco influye en el cuerpo ----//
  43. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
  44. {
  45. if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
  46. {
  47. if(ActivarHS == 1)
  48. {
  49. SetPlayerHealth(playerid, 0.0);
  50. }
  51. }
  52. }
  53. //Suerte! By Reedk | No robar creditos! |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement