09.08.2014, 14:55
Код:
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;
}
