How let jump three times
#10

Quote:
Originally Posted by henkas
Посмотреть сообщение
Well all this time i was talking about jump three times at the same time because now its, i jump and still recovering time passed i jump again and still recovering i made it three times and then limit is reached. So it should be like this, i jump three times at same times then its say still recovering, after recovering again i can jump three times. I hope you understand it now. It was my fault, i didn't explain it good.
Try this:

Код:
new jumplimit[MAX_PLAYERS] = 0;

if(PRESSED(KEY_WALK))
 {
	if(teams[playerid] == TEAM_HUMAN)
	{
		if(pInfo[playerid][pHumanClass] == ROCKETMAN)
		{
			if(gettime() - 6 < Abilitys[playerid][RocketmanJump]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5);
			{
				new Float:x,Float:y,Float:z;
				GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
				SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
				if (jumplimit[playerid] > 3)
				{
					Abilitys[playerid][RocketmanJump] = gettime();
					jumplimit[playerid] = -1;
				}
				jumplimit[playerid]++;

			}
		}
	}
}
Reply


Messages In This Thread
How let jump three times - by henkas - 11.03.2017, 20:37
Re: How let jump three times - by LEOTorres - 11.03.2017, 20:44
Re: How let jump three times - by henkas - 11.03.2017, 20:54
Re: How let jump three times - by LEOTorres - 11.03.2017, 21:01
Re: How let jump three times - by henkas - 11.03.2017, 21:08
Re: How let jump three times - by LEOTorres - 11.03.2017, 21:18
Re: How let jump three times - by henkas - 11.03.2017, 21:23
Re: How let jump three times - by LEOTorres - 11.03.2017, 21:31
Re: How let jump three times - by henkas - 11.03.2017, 21:37
Re: How let jump three times - by LEOTorres - 11.03.2017, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)