Jump to content
  • 0

head doar pentru mafia


Question

Posted

 

Vreau acest sistem numai pentru mafie
cum se face asta?

Vreau ca acest sistem sa funcționeze numai pentru mafie

my gm: bigZone

/*
================================================================================
$$$$$$$$$$$$$$$$$$$$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("/activehead", cmdtext, true, 10) == 0)
    {
		{
		    ActivarHS = 1;
	}
}
//------------------Desactivar HeadShot CMD ------------------------------------//
  	if (strcmp("/disablehead", cmdtext, true, 10) == 0)
    {
		{
		    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 == 31 && bodypart == 9)
	{
		if(ActivarHS == 1)
		{
			SetPlayerHealth(playerid, 0.0);
			GameTextForPlayer(playerid, "You headshoted by another player", 2000, 3);
			GameTextForPlayer(issuerid, "You get a get shot", 2000, 3);
		}
	}
}
//Suerte! By Reedk | No robar creditos! |

 

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.