[Ajuda] Portхes
#1

Entгo , sei fazer portхes mas somente com comandos para abrir , tipo /abrir e /fechar . e eles nгo fecham se nгo der o comando , queria saber um jeito de fazer com que ele abrisse com uma buzina ;s

Aqui estб o code pawn do portгo de comando , que sei fazer .

Код:
new Portao;

#define Vermelho 0xFF0000AA
#define Amarelo 0xFFFF00AA


public OnFilterScriptInit()
{
    Portao = CreateObject(980,  -1540.3406982422, 482.71173095703, 8.9530792236328, 0, 0, 0, 342.8113);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

//----------------------------
	if (strcmp("/abrir", cmdtext, true, 10) == 0)
	{
		if(!IsPlayerAdmin(playerid))
	    {
			MoveObject(Portao, -1540.3406982422, 482.71173095703, 8.9530792236328, 5.0);
			SendClientMessage(playerid, Vermelho, "Portгo Aberto");
			return 1;
        }
	}
//----------------------------
	if (strcmp("/fechar", cmdtext, true, 10) == 0)
	{
		if(!IsPlayerAdmin(playerid))
        {
			MoveObject(Portao, -1531.1553955078, 482.18063354492, 8.9530792236328, 5.0);
			SendClientMessage(playerid, Vermelho, "Portгo Fechado");
			return 1;
        }
	}
	return 0;
}
Reply


Messages In This Thread
[Ajuda] Portхes - by FallenHtz - 22.12.2011, 19:27
Re: [Ajuda] Portхes - by AW4Y - 22.12.2011, 19:33
Re: [Ajuda] Portхes - by FallenHtz - 22.12.2011, 19:35
Re: [Ajuda] Portхes - by Detonador - 22.12.2011, 19:36
Re: [Ajuda] Portхes - by FallenHtz - 22.12.2011, 19:39
Re: [Ajuda] Portхes - by AW4Y - 22.12.2011, 19:40
Re: [Ajuda] Portхes - by Hardware - 22.12.2011, 19:40
Re: [Ajuda] Portхes - by Detonador - 22.12.2011, 19:41
Re: [Ajuda] Portхes - by AW4Y - 22.12.2011, 19:42
Re: [Ajuda] Portхes - by Hardware - 22.12.2011, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)