[PEDIDO] Comando /fumaca
#6

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Creio que nгo precise mais eu fazer entгo '-'
Talvez seja necessario sim xD

Nao deu certo o comando que ele fez...
cheguei a tentar isso

pawn Код:
if (strcmp("/fumaca", cmdtext, true, 10) == 0)
{
    new carid = GetPlayerVehicleID(playerid);
    if(carid == 511 || carid == 512 || carid == 593 || carid == 520 || carid == 553 || carid == 476 || carid == 519 || carid == 460)
    {

            if(smoke[carid] == 0)
            {
                smoke[carid] = AttachObjectToVehicle(2780, carid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, COR_BRANCA, "Fumaca ligada.");
            }
            else
            {
                DestroyObject(smoke[carid]);
                SendClientMessage(playerid, COR_BRANCA, "Fumaca desligada.");
                smoke[carid] = 0;
            }

    }
    return 1;
}
Mas sem nada... botei atй um else pra se o cara nao estiver dentro daqueles ids, e mesmo dentro do aviao ele envia a mensagem dizendo que o jogador nao esta dentro de um aviao. Ou seja o porblema ta em pegar a id do veiculo.
Reply


Messages In This Thread
[PEDIDO] Comando /fumaca - by Mattos - 01.09.2011, 20:31
Re: [PEDIDO] Comando /fumaca - by WLSF - 01.09.2011, 20:51
Re: [PEDIDO] Comando /fumaca - by Mattos - 01.09.2011, 21:06
Re: [PEDIDO] Comando /fumaca - by Pharrel - 01.09.2011, 21:15
Re: [PEDIDO] Comando /fumaca - by WLSF - 01.09.2011, 21:38
Re: [PEDIDO] Comando /fumaca - by Mattos - 02.09.2011, 01:15
Re: [PEDIDO] Comando /fumaca - by Pharrel - 02.09.2011, 01:23
Re: [PEDIDO] Comando /fumaca - by Mattos - 02.09.2011, 01:33
Re: [PEDIDO] Comando /fumaca - by Pharrel - 02.09.2011, 01:36
Re: [PEDIDO] Comando /fumaca - by Mattos - 02.09.2011, 01:37

Forum Jump:


Users browsing this thread: 1 Guest(s)