Quantcast

Jump to content

» «
Photo

Police Related Scripts

1 reply to this topic
GoldenJoel
  • GoldenJoel

    Hustler

  • Members
  • Joined: 29 Dec 2007

#1

Posted 20 February 2012 - 01:01 PM

Hi guys,

I'm looking for two scripts specifically. One would allow all cops in LC to carry M4s, and the other would be SWAT/Helicopters being called out on 1 Star offenses whether they were by pedestrians or the player.

I'm trying to make LC look like a warzone, and I have all my textures right, but it doesn't make sense for soldiers to fight the civilian riots with only pistols.

Thanks for any help!

MonkeyMan_420
  • MonkeyMan_420

    Player Hater

  • BUSTED!
  • Joined: 07 Mar 2012

#2

Posted 08 March 2012 - 12:05 AM Edited by MonkeyMan_420, 09 March 2012 - 10:49 AM.

sounds cool, any pictures of the textures?

here is a quick solution to enable heli on 1 star, u can just bypass 1 or 2 stars... want a warzone? u will get a warzone

the harder solution is spawning the heli yourself on 1 or 2 stars and re creating all the AI

CODE
using System;
using System.Windows.Forms;
using GTA;

public class PoliceStuff : Script
{
   public PoliceStuff()
   {
       Tick += new EventHandler(PoliceStuff_Tick);
   }
   private void PoliceStuff_Tick(object sender, EventArgs e)
   {
       if (Game.LocalPlayer.WantedLevel == 1 || Game.LocalPlayer.WantedLevel == 2)
       {
           Game.LocalPlayer.WantedLevel = 3;
       }

       Ped[] pedArray = World.GetAllPeds();

       foreach (Ped cop in pedArray)
       {
           if (cop.RelationshipGroup != RelationshipGroup.Cop)
               continue;

           if (cop.Weapons.AssaultRifle_M4.Ammo > 0)
               continue;

           cop.Weapons.RemoveAll();
           cop.Weapons.AssaultRifle_M4.Ammo = 500;
       }
   }
}


just tested and it works, with this no more 1-2 stars and cops armed with M4




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users