[PEDIDO] Comando /fumaca
#4

pawn Код:
new smoke[MAX_VEHICLES];//topo do gm
if(!strcmp(cmd, "Fumaзa", true))
{
    new carid = GetPlayerVehicleID(playerid);
    if(carid == 511 || carid == 512 || carid == 593 || carid == 520 || carid == 553 || carid == 476 || carid == 519 || carid == 460)
    {
        if(GetPlayerState == PLAYER_STATE_DRIVER)
        {
            if(smoke[carid] == 0)
            {
                smoke[carid] = AttachObjectToVehicle(2780, carid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, COR, "Fumaca ligada.");
            }
            else
            {
                DestroyObject(smoke[carid);
                SendClientMessage(playerid, COR, "Fumaca desligada.");
                smoke[carid] = 0;
            }
        }
    }
    return 1;
}
nao tenho certeza se destroy object funciona pra attached, mas tenta ai...
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: 2 Guest(s)