weapon hold breath help??
#1

im pretty new to scripting but im trying to make it so you can hold your breath while aiming using space and aim button

Код:
else if(newkeys & KEY_SPRINT && newkeys & KEY_AIM && weaponAttached[playerid] == 0)
		{
			if(BreatheTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You need to wait before holding your breathe again!");
			SetPlayerDrunkLevel(playerid, 0);
  			BreatheTimer[playerid] = SetTimerEx("BreathTime", 10000, false, "d", playerid);
            PlayerPlaySound(playerid, 165, 0.0, 0.0, 10.0);
			BreatheTime[playerid] = 1;
			return 1;
					
		}




forward BreathTime(playerid);
public BreathTime(playerid)
{
	BreatheTime[playerid] = 0;
    SendClientMessage(playerid, 0x42CC33C8, "You can hold your breath again!");
    return 1;
}
i didnt really follow any tutorials just started it, can anyone help tho?
Reply


Messages In This Thread
weapon hold breath help?? - by Trucido - 16.05.2015, 23:17
Re: weapon hold breath help?? - by DTV - 16.05.2015, 23:23
Re: weapon hold breath help?? - by Trucido - 16.05.2015, 23:59
Re: weapon hold breath help?? - by DTV - 17.05.2015, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)