[PROBLEMA] Verja Policia Problemas
#3

Quote:
Originally Posted by MrLevan
Посмотреть сообщение
pawn Код:
SetTimer("GateClose", 7000, 0);
Usas el Timer ?
Tome te pongo el comando entero:

Код:
if(strcmp(cmd, "/abrirpuerta", true) == 0 || strcmp(cmd, "/ap", true)==0)
	{
	    if(IsPlayerConnected(playerid))
		{
	        if(InfoJugador[playerid][pMember] == 1 || InfoJugador[playerid][pLeader] == 1 || InfoJugador[playerid][pAdmin] >= 1337)
			{
				MoveDynamicObject(LAPDA, 1544.61328125, -1630.73925781, 13.25000000, 2.0);
				SendClientMessage(playerid, COLOR_BLUE,"Puerta de la Cosa Nostra esta Abierta, se cerrara automaticamente en 7 segundos.");
				SetTimer("GateCloseLAPDA", 6000, 0);
				GetPlayerName(playerid, sendername, sizeof(sendername));
      			format(string, sizeof(string), "* %s usa su control remoto y abre la verja.", sendername);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			}
			else
			{
			    SendClientMessage(playerid,COLOR_DBLUE,"No tienes este control.");
			    return 1;
			}
		}
		return 1;
	}

public GateCloseLAPDA()
{
  		MoveDynamicObject(LAPDA, 1544.61328125,-1630.73925781,13.25000000, 3.0);
      	return 0;
}
Reply


Messages In This Thread
[PROBLEMA] Verja Policia Problemas - by JoNaDo18 - 26.02.2012, 20:58
Respuesta: [PROBLEMA] Verja Policia Problemas - by MrLevan - 26.02.2012, 21:38
Respuesta: [PROBLEMA] Verja Policia Problemas - by JoNaDo18 - 26.02.2012, 21:42
Respuesta: [PROBLEMA] Verja Policia Problemas - by MrLevan - 26.02.2012, 21:46
Respuesta: [PROBLEMA] Verja Policia Problemas - by davidxxx - 26.02.2012, 21:47
Respuesta: [PROBLEMA] Verja Policia Problemas - by MrLevan - 26.02.2012, 21:50
Respuesta: [PROBLEMA] Verja Policia Problemas - by JoNaDo18 - 26.02.2012, 21:52
Respuesta: [PROBLEMA] Verja Policia Problemas - by MrLevan - 26.02.2012, 21:55
Respuesta: [PROBLEMA] Verja Policia Problemas - by davidxxx - 26.02.2012, 22:00
Respuesta: [PROBLEMA] Verja Policia Problemas - by JoNaDo18 - 26.02.2012, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)