Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iusing GTA;
- using GTA.Native;
- using System;
- using System.IO;
- using System.Windows.Forms;
- public class IdleAnimations : Script
- {
- string ScriptName = "Idle Animations";
- string ScriptVer = "1.0";
- int GameTimeRef = Game.GameTime+20000;
- bool IsIdling = false;
- public IdleAnimations()
- {
- Tick += OnTick;
- }
- void OnTick(object sender, EventArgs e)
- {
- if (IsIdling)
- {
- if (Game.IsControlPressed(2, GTA.Control.VehicleAccelerate) || Game.IsControlPressed(2, GTA.Control.VehicleBrake) || Game.IsControlPressed(2, GTA.Control.VehicleMoveLeft)|| Game.IsControlPressed(2, GTA.Control.VehicleMoveRight)
- || Game.Player.Character.IsRagdoll)
- {
- Game.Player.Character.Task.ClearAll();
- IsIdling = false;
- GameTimeRef = Game.GameTime;
- }
- }
- else
- {
- if (Game.Player.Character.IsOnFoot)
- {
- if (!Game.Player.Character.IsStopped) GameTimeRef = Game.GameTime;
- else if (Game.GameTime > GameTimeRef + 10000)
- {
- IsIdling = true;
- Function.Call(GTA.Native.Hash.TASK_START_SCENARIO_IN_PLACE, Game.Player.Character, "WORLD_HUMAN_AA_SMOKE", -1, false);
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment