SA-MP Forums Archive
[FilterScript] [FS] Tuning Menu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Tuning Menu (/showthread.php?tid=299125)



[FS] Tuning Menu - forgottenkings - 24.11.2011

Tuning Menu
Description:This is a Just A Temporary Vehicle Modification Menu By ForgottenKings It Is Dialog Based!

pawn Код:
#include a_samp
#define COLOR_RED 0xFF0000AA
#define TUNEMENU 98544482574

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/tunemenu", true)==0)
    {
        ShowPlayerDialog(playerid, TUNEMENU, DIALOG_STYLE_LIST, "Tune Menu","Nitrox\nHydraulics\nWheels\nPaint Jobs\nColours", "Select", "Back");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == TUNEMENU)
    {
        if(response)
        {
            if(listitem == 0){ AddVehicleComponent(GetPlayerVehicleID(playerid),1010); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Hydraulics Added to your Vehicle");}
            if(listitem == 1){ AddVehicleComponent(GetPlayerVehicleID(playerid),1087); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Nitrox Added to your Vehicle");}
            if(listitem == 2) return ShowPlayerDialog(playerid, TUNEMENU+1, DIALOG_STYLE_LIST,"Wheels","Wire\nTwist\nAccess\nMega\nImport\nAtomic\nOfTwistfroad\nClassic", "Select", "Back");
            if(listitem == 3) return ShowPlayerDialog(playerid, TUNEMENU+2, DIALOG_STYLE_LIST,"Paint Jobs","Style 1\nStyle 2\nStyle 3\nStyle 4\nStyle 5", "Select", "Back");
            if(listitem == 4) return ShowPlayerDialog(playerid, TUNEMENU+3, DIALOG_STYLE_LIST,"Vehicle Colours","Black \nWhite \nDark Blue \nLight Blue\nBlue \nGreen \nRed \nYellow \nPink", "Select", "Back");
        }
        return 1;
    }
    if(dialogid == TUNEMENU+1)
    {
        if(response)
        {
            if(listitem == 0){ AddVehicleComponent(GetPlayerVehicleID(playerid),1081); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Wire Wheels to your Vehicle");}
            if(listitem == 1){ AddVehicleComponent(GetPlayerVehicleID(playerid),1078); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Twist Wheels Added to your Vehicle");}
            if(listitem == 2){ AddVehicleComponent(GetPlayerVehicleID(playerid),1098); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Access Wheels Added to your Vehicle");}
            if(listitem == 3){ AddVehicleComponent(GetPlayerVehicleID(playerid),1074); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Mega Wheels Added to your Vehicle");}
            if(listitem == 4){ AddVehicleComponent(GetPlayerVehicleID(playerid),1082); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Import Wheels Added to your Vehicle");}
            if(listitem == 5){ AddVehicleComponent(GetPlayerVehicleID(playerid),1085); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Atomic Wheels Added to your Vehicle");}
            if(listitem == 6){ AddVehicleComponent(GetPlayerVehicleID(playerid),1025); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"OfTwistfroad Wheels Added to your Vehicle");}
            if(listitem == 7){ AddVehicleComponent(GetPlayerVehicleID(playerid),1077); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Classic Wheels Added to your Vehicle");}
        }
        return 1;
    }
    if(dialogid == TUNEMENU+2)
    {
        if(response)
        {
            if(listitem == 0){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint Job changed to Paint Job Style 1"); }
            if(listitem == 1){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint Job changed to Paint Job Style 2"); }
            if(listitem == 2){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint Job changed to Paint Job Style 3"); }
            if(listitem == 3){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),3); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint Job changed to Paint Job Style 4"); }
            if(listitem == 4){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),4); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint Job changed to Paint Job Style 5"); }
        }
        return 1;
    }
    if(dialogid == TUNEMENU+3)
    {
        if(response)
        {
            if(listitem == 0){ ChangeVehicleColor(GetPlayerVehicleID(playerid),0,0);     StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Black");      }
            if(listitem == 1){ ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1);     StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to White");      }
            if(listitem == 2){ ChangeVehicleColor(GetPlayerVehicleID(playerid),425,425); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Dark blue");  }
            if(listitem == 3){ ChangeVehicleColor(GetPlayerVehicleID(playerid),2,2);     StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Light blue"); }
            if(listitem == 4){ ChangeVehicleColor(GetPlayerVehicleID(playerid),16,16);   StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Green");      }
            if(listitem == 5){ ChangeVehicleColor(GetPlayerVehicleID(playerid),3,3);     StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Red");         }
            if(listitem == 6){ ChangeVehicleColor(GetPlayerVehicleID(playerid),6,6);     StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Yellow");  }
            if(listitem == 7){ ChangeVehicleColor(GetPlayerVehicleID(playerid),146,146); StartTuneSound(playerid); SendClientMessage(playerid,COLOR_RED,"Vehicle Paint changed to Pink");        }
        }
        return 1;
    }
    return 0;
}
stock StartTuneSound(playerid)
{
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
return 1;
}



Re: [FS] Tuning Menu - YoUnG_KiD - 24.11.2011

pics videO??!


Re: [FS] Tuning Menu - Notis123 - 24.11.2011

I though sa-mp use pawno for scripting not PHP


Re: [FS] Tuning Menu - Kostas' - 24.11.2011

Only pawno. Just people use [ php ] for colourful thread


Re: [FS] Tuning Menu - forgottenkings - 24.11.2011

Sry Fixed


Re: [FS] Tuning Menu - YoUnG_KiD - 25.11.2011

Hm... But itz better to have Pics or videos!


Re: [FS] Tuning Menu - forgottenkings - 25.11.2011

Well pic of what should i give you || its just a menu Dialog with all tuning options


Re: [FS] Tuning Menu - |_ⒾⓇⓄN_ⒹⓄG_| - 25.11.2011

it wont work
at least you could test it before releasing..
in the command the dialog id is '1'
in the OnDialogResponse its TUNEMENU
and the define TUNEMENU means 98544482574.
so ..they are not connected and it wont work...
btw 98544482574 is a huge value and dialogs have a limit afaik


Re: [FS] Tuning Menu - DJJDgtamaat - 18.03.2012

can you give a right download Rar file?? Pics?? Video??