11.03.2017, 21:44
Quote:
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.
|
Код:
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]++; } } } }