Jump to content
  • 0

head doar pentru mafia


JoeMirana

Question

 

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! |

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.