[Ajuda] Detectar se player estб segurando espaзo
#9

Quote:
Originally Posted by gmstrikker
Посмотреть сообщение
Por que nгo ta detectando o espaзo pressionado?
PHP код:
        new Keys,ud,lr;
        
GetPlayerKeys(i,Keys,ud,lr);
        
// cansando
        
if(ud == KEY_SPRINT) {
            if(!
IsPlayerInAnyVehicle(i)) { PlayerCorrendo(i); }
        }
        else { 
// parou de correr
            
ContadorParandoCorrer[i] = SetTimerEx("PlayerNaoEstaCorrendo"1000"i"i);
        } 
Vocк tб comparando as teclas cima/baixo com espaзo, isso nгo faz muito sentido.
Para dar certo vocк teria que comparar a sua variбvel Keys com KEY_SPRINT, aн sim.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)