[Pedido] Faзa um fs com essa include pra mim? (Nгo entendo disso O_O)
#8

Quote:
Originally Posted by KingstoN*
Посмотреть сообщение
FS com comando /neon pra colocar/retirar neon dos veнculos:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <nLibrary>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 6767:
        {
            if(!response) return 1;
            switch(listitem)
            {
                case 0: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
                case 1: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
                case 2: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
                case 3: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
                case 4: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
                case 5: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
                case 6:{if(IsVehicleUsingNeon(GetPlayerVehicleID(playerid))) RemoveNeonFromVehicle(GetPlayerVehicleID(playerid));}
            }
        }
    }
    return 1;
}

CMD:neon(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    ShowPlayerDialog(playerid, 6767, DIALOG_STYLE_LIST, "Neon Lista", "Branco\nVermelho\nVerde\nAmarelo\nRoxo\nAzul\nRemover", "Instalar", "Cancelar");
    return 1;
}

Comandos para adicionar/remover sirene.
pawn Код:
CMD:sirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_POLICE);
    return 1;
}

CMD:rsirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(!IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    RemoveBuzzerFromVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Код:
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(151) : warning 217: loose indentation
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(154) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
fail e olha q nem tem linha 151 nem 154 Lol
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)