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.

  • Similar Content

    • By GamerulFOX
      CMD:masina(playerid, params[])
      {
          CreateVehicle(531, 217.3956, 1867.7419, 12.8884, 0, 1, 1, 0, 0);
          SendClientMessage(playerid, 0x0077ffFF, "Masina ta a fost spawnata cu succes in baza militara !");
          DisablePlayerCheckpoint(playerid);
          SetPlayerCheckpoint(playerid, 217.3956, 1867.7419, 12.8884, 3.0);
          SendClientMessageToAll(0x48452eFF, "Un player a spawnat o masina!");
          return 1;
      }






      CMD:comanda7368(playerid, params[])
      {
          SendClientMessage(playerid, 0x0077ffFF, "Pentru ca ai folosit comanda aceasta ai primit 10 000 de lei!");
          GivePlayerMoney(playerid, 10000);
          return 1;
      }


       
    • By GamerulFOX
      Salut cine poate sa imi faca o comanda /jobs ? Care sa aibe doar un joc si sa scrie in ea //aici pui cordonatele ! Va rog !
    • By GamerulFOX
      Salutareee ! Am si eu o problema ! Cine ma poate ajuta ? Vreau ca prin aceasta comanda doar daca te cheama pe samp GamerulFOX sa poti intra in casa accea!
      Dar nu am stiut cum !

      CMD:enterhouse1(playerid, params[])
      {
          new name[MAX_PLAYER_NAME], GamerulFOX[MAX_PLAYERS];
          GetPlayerName(playerid, name, sizeof(name));
          if(!IsPlayerInRangeOfPoint(playerid, 3.0, 124.0870, 1747.3165, 17.5925)) return SendClientMessage(playerid, 0xff0000FF, "Nu esti la usa acelei case!");
          if(GetPlayerName(playerid, name, sizeof(name)) != GamerulFOX[playerid]) return SendClientMessage(playerid, 0xff0000FF, "Nu este casa ta!");
          else
              SendClientMessage(playerid, 0xff0000FF, "Bun venit acasa!");
          return 1;
      }
    • By Onehitkill
      Vreau ca cand un player depaseste 250 viteza vehicul sa spuna la admini
       
      Iar daca un admin depaseste 250 sa nu spuna nimic

      new idcar = GetPlayerVehicleID(i);
                  if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
                  {
                      new speed = Carspeed(i),
                          antispeed[300],
                          sendername[25];
                      GetPlayerName(i,sendername,sizeof(sendername));
                      if(speed > 222)
                      {
                          format(antispeed, sizeof(antispeed), "(N) %s (%d, level %d) may be using speed hack, vehicle: %s, speed: %.0d.",sendername,i,PlayerInfo[pLevel],aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],speed);
                          ABroadCast(COLOR_RED,antispeed,1);
                      }
                  }
       
       
      ma ajutati ?
  • 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.