Jump to content
  • Global

    Global

    Chatroom Rules

    • NO SE DA SOPORTE EN CHATBOX
    • NO SPAM
    • NO FLOOD

Recommended Posts

  • Usuario
Posted (edited)

Hola!

Tutorial hecho por s0k4.

aqui una guia para poder crear una puerta que se abra con un comando!

 

Agregen esta linea al comienso del gm!

 

forward TiempoP;

 

Agregen esto tambien!

 

new NuevaP;

 

Vallan a OnGameModeInit y agregan esto

 

NuevaP = CreateObject(980,1588.000000,-1638.000000,15.200000,0.0000,0.9000,180.3000);

// esto es la puerta y ustedes le ponen sus pripias coordenadas

 

Luego ballan a OnPlayerCommandText y agregan esto!

 

 

if(strcmp(cmd, "/AbrirP", true) == 0) // yo puse /AbrirP ustedes usen elq ue deseen
	{
	   if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1) //Esto dice para que faccion sera 1 es lspd
		  {
			MoveObject(NuevaP, 1598.400000, -1638.000000, 15.200000, 3.5); // Cordenada de la puerta abierta
		   SetTimer("TiempoP", 8000, 0);// tiempo en que se cerrara la puerta
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string,sizeof(string), "* %s usa su Control Remoto para Abrir la Puerta.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		   {
			   SendClientMessage(playerid, TEAM_ORANGE_COLOR, "* La Puerta se Cierra Automaticamente en 8 Segundos.");
				return 1;
		 }
		 }
	  return 1;
	  }

 

Y al final del gm agregen esto!

 

public TiempoP()
{
	  MoveObject(NuevaP,1588.000000, -1638.000000, 15.200000, 3.5); // Cordenadas de Cierre
	  return 1;
}

 

 

 

PD : recuerden cambiar als coordenadas

cualquier duda o consulta mediante el hilo!

Edited by s0k4.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...