[Ajuda] Portхes nгo abrem
#1

Pessoal eu criei uns portхes aqui mais sу que eles nгo abrem, as coordenadas estгo correta mais sу que nгo abre de jeito nenhum, irei deixar o cуdigo abaixo pra vк se alguйm acha o erro!.

Код:
//Topo do GameMode
new PortaoCaminhoneiro;
forward FecharPortaoCaminhoneiro();

//OnGameModeInit

PortaoCaminhoneiro = CreateObject(968,-494.1898, -561.5786, 25.4353, 3.0000, 90.0000, 359.0000);

//OnPlayerKeyStateChange
	if(newkeys == KEY_SPRINT)
	{
	    if(PlayerInfo[playerid][Profissao] == 4)
	  	{
	       if(IsPlayerInRangeOfPoint(playerid,15.0, -486.8881, -561.6609, 25.5835))
	       {
        		SendClientMessage(playerid,COLOR_GOLD,"[Info] Portгo fechando em 12 segundos.");
				MoveObject(PortaoCaminhoneiro, -494.1898, -561.5786, 25.4353, 0.000, 2.0);
	           	SetTimer("FecharPortaoCaminhoneiro", 12000, 0);
    		}
		}

	}
//public pra fechar o portгo
public FecharPortaoCaminhoneiro()
{
      MoveObject(PortaoCaminhoneiro,-494.1898, -561.5786, 25.4353, 2.0);
      return 1;
}
Tipo sу aparece a mensagem de fechando em 12 segundos mais nгo acontece nada. Se alguйm poder me ajudar fico grato.
Reply
#2

edit = suas cordenadas do portao aberto e portao fechado estao iguais
Reply
#3

Vishi erro meu. Hoje eu to muito desligado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)