09/01/2022 13:13
(09/01/2022 11:25)SrBlue Escreveu: bota uma verificação se o motor está ligado ou desligado
exemplo
if(Combustivel[playerid][Diesel] > 0 && Motor[carid]){...}
e utilize return KillTimer(...) se o killtimer tiver dentro da mesma função...
(09/01/2022 11:30)ipsLuan Escreveu: Você precisa declarar uma variável que estará recebendo o timer para depois parar.
Código PHP:new _TimerCombustivel[MAX_PLAYERS];
_TimerCombustivel[playerid] = SetTimerEx("TimerCombustivel", 5000, true,"i", playerid);
KillTimer(_TimerCombustivel[playerid]);
Muito obrigado, me ajudaram muito ++ REP <3