How let jump three times
#3

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Create a variable to store how many times a player jumps for instance.

Код:
new jumplimit[MAX_PLAYERS] = 0;
Then, whenever the player jumps just do.

Код:
jumplimit[playerid]++;
To stop them jumping over three times, you can then do:

Код:
if (jumplimit[playerid] > 2)
{
    //Whatever you want here//
}
To reset the limiter, just do:

Код:
jumplimit[playerid] = 0;
Well i did what you say and i can't even jump now
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)