Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ================================================================================
- $$$$$$$$$$$$$$$$$$$$Creado Por Reedk [MeScript2212 SAMP FORUM]$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$=======
- $$$--- Borrar Creditos = Ban u Advertencia.--$$$$$$$$$$$========================
- $$$Exclusivo para PawnoScript y Samp Forum!--$$$$$$$$$$$$$$$$$==============================
- ================================================================================
- */
- #include <a_samp>
- new ActivarHS;
- public OnFilterScriptInit()
- {
- ActivarHS = 1;
- print("\n-------------------------------------------");
- print(" FS Head Shot cargado con exito! |");
- print(" $$$$$$$ =============== $$$$$$$$ |");
- print(" Creado por Reedk |");
- print("---------------------------------------------\n");
- return 1;
- }
- //-------------------------- Acttivar Headshots CMD ----------------------------//
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/activarhs", cmdtext, true, 10) == 0)
- {
- if (IsPlayerAdmin(playerid))
- {
- ActivarHS = 1;
- }
- }
- //------------------Desactivar HeadShot CMD ------------------------------------//
- if (strcmp("/desativarhs", cmdtext, true, 10) == 0)
- {
- if (IsPlayerAdmin(playerid))
- {
- ActivarHS = 0;
- } return 1;
- }
- return 0;
- }
- // 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 ----//
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
- {
- if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
- {
- if(ActivarHS == 1)
- {
- SetPlayerHealth(playerid, 0.0);
- }
- }
- }
- //Suerte! By Reedk | No robar creditos! |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement