11.03.2017, 21:18
Quote:
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]++; } } } } } |
Anything within:
Код:
if (jumplimit[playerid] > 3) { }