How let jump three times
#6

Quote:
Originally Posted by henkas
Посмотреть сообщение
Hmm now jumping bat just one time not three times. So its didn't work
Код:
	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);
    {
    if (jumplimit[playerid] > 3)
    {
    jumplimit[playerid]++;
	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);
	Abilitys[playerid][RocketmanJump] = gettime();
	}
	else
    {
    jumplimit[playerid]++;
    }
	}
	}
	}
	}
If you are wanting to allow that ability to occur, you would place it in the else statement.

Anything within:
Код:
if (jumplimit[playerid] > 3)
{
}
is what will be triggered if the player exceeds the limit.
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)