lamlam Posted March 13, 2018 Share Posted March 13, 2018 using System;//using System.Collections.Generic;//using System.Linq;//using System.Text;using System.Windows.Forms;using GTA;//using GTA.Native;public class MyMod : Script { public MyMod() { Interval = Settings.GetValueInteger("INTERVAL", "SETTINGS", 0); this.Tick += new EventHandler(eTicker); this.KeyDown += new GTA.KeyEventHandler(this.eKeyDown); } bool IsActivate = false; private void eTicker(object sender, EventArgs e) { if (IsActivate == true) { if (isKeyPressed(Settings.GetValueKey("Key", Keys.F11))) { IsActivate = false; Wait(200); Game.DisplayText("Kill mode is off!"); } else { if (Player.Character.Health<100) { Player.Character.Health = 1000; } if (Player.Character.Weapons.FromType(Player.Character.Weapons.CurrentType).Ammo < 100) { Player.Character.Weapons.FromType(Player.Character.Weapons.CurrentType).Ammo += 1000; } } } else { if (isKeyPressed(Settings.GetValueKey("Key", Keys.F11))) { IsActivate = true; Wait(200); Game.DisplayText("Kill mode is on!"); } } } private void eKeyDown(object sender, GTA.KeyEventArgs e) { switch (e.Key) { case Keys.M: //Player.Character.Weapons.RemoveAll(); Player.Character.Health=100; Player.Character.Armor=100; Player.Character.CurrentVehicle.Repair(); Player.Character.CurrentVehicle.Wash(); Player.Character.Weapons.FromType(Player.Character.Weapons.CurrentType).Ammo +=500; Game.DisplayText("Some gifts form the Hell!"); break; case Keys.N: Vector3 x = World.GetNextPositionOnStreet(Player.Character.Position.Around(10.0f)); World.CreateVehicle(new Model("Pres"), x); break; } }} i have that code scripts gta 4 but it doesn't work, i have no idea why?, somebody help me ? Link to comment Share on other sites More sharing options...
lamlam Posted March 13, 2018 Author Share Posted March 13, 2018 ok, i didn't need help anymore, i found the way to fix. Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now