Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- --------------------------------------------------------------------------------
- Filterscript made by, Travis The Tiger.
- --------------------------------------------------------------------------------
- */
- #include <a_samp>
- #include <zcmd>
- #define COLOR_WHITE 0xFFFFFFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Travis The Tiger");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- //-----------------------------------------------Command---------------------------------------------------------------------------------
- command(toys, playerid, prams[])
- {
- ShowPlayerDialog(playerid, 9000, DIALOG_STYLE_LIST, "Objects", "Bandanna's (1)\nGlasses (2)\nLasers (3)\nMiscallaneous (4)\nRemove\nAdjust", "Select", "Cancel");
- return 1;
- }
- //---------------------------------------------Dialog Menu's-------------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- {
- case 9000: // Menu For Toys
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 9001, DIALOG_STYLE_LIST, "Bandanas", "Black\nWhite\nGreen", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Glasses", "Red Aviator's\nBlue Aviator's\nPurple Aviator's\nGreen Aviator's\nBlack SWAT\nBlue SWAT\nRed SWAT", "Select", "Cancel");
- return 1;
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 9003, DIALOG_STYLE_LIST, "Lasers", "Laser 1\nLaser 2\nLaser 3\nLaser 4\nLaser 5", "Select", "Cancel");
- return 1;
- }
- case 3:
- {
- ShowPlayerDialog(playerid, 9004, DIALOG_STYLE_LIST, "Miscallaneous", "Gas Mask\nSWAT Armour\nPolice Shield\nGuitar", "Select", "Cancel");
- return 1;
- }
- case 4:
- {
- ShowPlayerDialog(playerid, 9005, DIALOG_STYLE_LIST, "Remove", "1\n2\n3\n4", "Select", "Cancel");
- return 1;
- }
- case 5:
- {
- ShowPlayerDialog(playerid, 9006, DIALOG_STYLE_LIST, "Adjust", "1\n2\n3\n4", "Select", "Cancel");
- return 1;
- }
- }
- }
- case 9001: // Bandanas
- {
- switch(listitem)
- {
- case 0: // Black Bandana
- {
- RemovePlayerAttachedObject(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 18912, 2, 8, 2.5, 0, 90, 180, 90, 1, 1, 1);
- EditAttachedObject(playerid, 1);
- return 1;
- }
- case 1: // White Bandana
- {
- RemovePlayerAttachedObject(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 18919, 2, 8, 2.5, 0, 90, 180, 90, 1, 1, 1);
- EditAttachedObject(playerid, 1);
- return 1;
- }
- case 2: // Green Bandana
- {
- RemovePlayerAttachedObject(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 18913, 2, 8, 2.5, 0, 90, 180, 90, 1, 1, 1);
- EditAttachedObject(playerid, 1);
- return 1;
- }
- }
- }
- case 9002: // Glasses
- {
- switch(listitem)
- {
- case 0: // Red Aviators
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19026, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 1: // Blue Aviators
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19023, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 2: // Purple Aviators
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19024, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 3: // Green Aviators
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19028, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 4: //Black SWAT Glasses
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19138, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 5: //Blue SWAT Glasses
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19139, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 6: //Red SWAT Glasses
- {
- RemovePlayerAttachedObject(playerid, 2);
- SetPlayerAttachedObject(playerid, 2, 19340, 2, 8, 4, 0, 90, 90, 0, 1, 1, 1);
- EditAttachedObject(playerid, 2);
- return 1;
- }
- }
- }
- case 9003:
- {
- switch(listitem)
- {
- case 0: // Unknown Laser
- {
- RemovePlayerAttachedObject(playerid, 3);
- SetPlayerAttachedObject(playerid, 3, 19080, 6, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 3);
- return 1;
- }
- case 1: // Unknown Laser
- {
- RemovePlayerAttachedObject(playerid, 3);
- SetPlayerAttachedObject(playerid, 3, 19081, 6, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 3);
- return 1;
- }
- case 2: // Unknown Laser
- {
- RemovePlayerAttachedObject(playerid, 3);
- SetPlayerAttachedObject(playerid, 3, 19082, 6, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 3);
- return 1;
- }
- case 3: // Unknown Laser
- {
- RemovePlayerAttachedObject(playerid, 3);
- SetPlayerAttachedObject(playerid, 3, 19083, 6, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 3);
- return 1;
- }
- case 4: // Unknown Laser
- {
- RemovePlayerAttachedObject(playerid, 3);
- SetPlayerAttachedObject(playerid, 3, 19084, 6, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 3);
- return 1;
- }
- }
- }
- case 9004:
- {
- switch(listitem)
- {
- case 0: // Gas Mask
- {
- RemovePlayerAttachedObject(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 19472, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 1);
- return 1;
- }
- case 1: // SWAT Armour
- {
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 4, 19142, 1, 12, 6, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 4);
- return 1;
- }
- case 2: // Police Shield
- {
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 4, 18637, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 4);
- return 1;
- }
- case 3: // Guitar
- {
- RemovePlayerAttachedObject(playerid, 4);
- SetPlayerAttachedObject(playerid, 4, 19317, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1);
- EditAttachedObject(playerid, 4);
- return 1;
- }
- }
- }
- case 1005:
- {
- switch(listitem)
- {
- case 0: // Remove The Toy From Slot 1
- {
- RemovePlayerAttachedObject(playerid, 1);
- return 1;
- }
- case 1: // Remove The Toy From Slot 2
- {
- RemovePlayerAttachedObject(playerid, 2);
- return 1;
- }
- case 2: // Remove The Toy From Slot 3
- {
- RemovePlayerAttachedObject(playerid, 3);
- return 1;
- }
- case 3: // Remove The Toy From Slot 4
- {
- RemovePlayerAttachedObject(playerid, 4);
- return 1;
- }
- }
- }
- case 9006:
- {
- switch(listitem)
- {
- case 0: // Adjust Toy Slot 1
- {
- EditAttachedObject(playerid, 1);
- return 1;
- }
- case 1: // Adjust Toy Slot 2
- {
- EditAttachedObject(playerid, 2);
- return 1;
- }
- case 2: // Adjust Toy Slot 3
- {
- EditAttachedObject(playerid, 3);
- return 1;
- }
- case 3: // Adjust Toy Slot 4
- {
- EditAttachedObject(playerid, 4);
- return 1;
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment