Prevenir bugs en puertas automбticas
#5

Код:
CMD:ap(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, -717,963.09998,12.8)) //Posicion donde Se Ejecutara La Funcion
    {
        //colocar donde abre la puerta
        if(PuertasAutmaticas == false)
        {
            PuertasAutmaticas = true;
            //tu funcion que abre la puerta
            MoveObject(Puerta,-717,972,12.8,2); //ID PUERTA, X, Y , Z Y VELOCIDAD, (PUERTA ABIERTA)
            SetTimer("CerrarPuerta", 8000, false); //CALLBACK, TIEMPO MILISEGUNDOS y no repetir timer
        }
    }
    return 1;
}
Reply


Messages In This Thread
Prevenir bugs en puertas automбticas - by Orei - 09.08.2014, 11:28
Respuesta: Prevenir bugs en puertas automбticas - by OTACON - 09.08.2014, 12:54
Re: Prevenir bugs en puertas automбticas - by Orei - 09.08.2014, 13:35
Respuesta: Prevenir bugs en puertas automбticas - by OTACON - 09.08.2014, 14:41
Respuesta: Prevenir bugs en puertas automбticas - by xDarkuzSx - 09.08.2014, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)