Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //BUM Filterscript by !Pumpkin
- #include <a_samp>
- new Temp[MAX_PLAYERS] = 0;
- forward freeze(playerid);
- forward dildo(playerid);
- new pickup_Trash;
- #define COLOR_GREEN 0x008000FF
- #define MAX_TRASH_CANS 51
- #define DIALOG_DILDO 1
- #define DIALOG_WEAPON 2
- #define DIALOG_FLOWERS 3
- #define DIALOG_MONEY 4
- #define DIALOG_BURGER 5
- new Float:gTrashBins_Locations[MAX_TRASH_CANS][3] = {
- {2568.3000000,-1035.5000000,68.8000000}, //object{2},
- {2546.6001000,-1033.2000000,71.4000000}, //object{frame_thick_5},{1},
- {2546.6001000,-1033.2000000,71.4000000}, //object{low_dinning_5},{1},
- {2546.8999000,-1034.7000000,68.6000000}, //object{tree_hipoly07},{1},
- {2538.8999000,-1057.9000000,68.6000000}, //object{tree_hipoly07},{2},
- {2527.6001000,-1057.3000000,68.6000000}, //object{tree_hipoly07},{3},
- {2528.7000000,-1035.7000000,68.6000000}, //object{tree_hipoly07},{5},
- {2510.0000000,-1030.5000000,69.0000000}, //object{tree_hipoly07},{6},
- {2504.8999000,-1059.9000000,69.0000000}, //object{tree_hipoly07},{7},
- {2484.3000000,-1052.3000000,66.6000000}, //object{tree_hipoly07},{8},
- {2457.3999000,-1024.2000000,58.7000000}, //object{tree_hipoly07},{9},
- {2458.2000000,-1051.6000000,58.7000000}, //object{tree_hipoly07},{10},
- {2427.0000000,-1017.3000000,53.3000000}, //object{tree_hipoly07},{11},
- {2435.8000000,-1052.2000000,53.3000000}, //object{tree_hipoly07},{12},
- {2380.2000000,-1039.5000000,52.7000000}, //object{tree_hipoly07},{13},
- {2379.3999000,-1038.3000000,52.7000000}, //object{tree_hipoly07},{14},
- {1785.8000000,-1146.9000000,22.9000000}, //object{tree_hipoly07},{15},
- {1800.3000000,-1146.9000000,22.9000000}, //object{tree_hipoly07},{16},
- {1829.0000000,-1147.3000000,22.9000000}, //object{tree_hipoly07},{17},
- {1829.2000000,-1144.1000000,22.9000000}, //object{tree_hipoly07},{18},
- {1828.9000000,-1114.7000000,22.9000000}, //object{tree_hipoly07},{19},
- {1829.4000000,-1097.5000000,22.9000000}, //object{tree_hipoly07},{20},
- {1829.7000000,-1084.2000000,22.9000000}, //object{tree_hipoly07},{21},
- {1516.7000000,-1849.3000000,12.5000000}, //object{tree_hipoly07},{22},
- {1486.0000000,-1847.5000000,12.5000000}, //object{tree_hipoly07},{23},
- {1468.9000000,-1847.7000000,12.5000000}, //object{tree_hipoly07},{24},
- {1466.1000000,-1847.6000000,12.5000000}, //object{tree_hipoly07},{25},
- {1420.7000000,-1846.5000000,12.5000000}, //object{tree_hipoly07},{26},
- {1420.7000000,-1844.4000000,12.5000000}, //object{tree_hipoly07},{27},
- {2382.1001000,-1939.8000000,12.5000000}, //object{tree_hipoly07},{28},
- {2441.5000000,-1973.8000000,12.6000000}, //object{tree_hipoly07},{29},
- {2441.2000000,-1979.8000000,12.5000000}, //object{tree_hipoly07},{30},
- {1093.1000000,-1881.3000000,12.5000000}, //object{tree_hipoly07},{31},
- {1093.2000000,-1876.7000000,12.5000000}, //object{tree_hipoly07},{32},
- {1101.9000000,-1876.1000000,12.5000000}, //object{tree_hipoly07},{33},
- {1117.5000000,-1876.2000000,12.5000000}, //object{tree_hipoly07},{34},
- {1175.2000000,-1878.8000000,12.6000000}, //object{tree_hipoly07},{35},
- {433.7000100,-1747.8000000,8.2000000}, //object{tree_hipoly07},{37},
- {793.0000000,-840.0000000,59.6000000}, //object{tree_hipoly07},{38},
- {789.0999800,-841.2999900,59.6000000}, //object{tree_hipoly07},{39},
- {788.5999800,-862.0999800,59.6000000}, //object{tree_hipoly07},{40},
- {789.0000000,-863.2000100,59.6000000}, //object{tree_hipoly07},{41},
- {912.2000100,-836.7999900,91.3000000}, //object{tree_hipoly07},{42},
- {911.2000100,-837.5999800,91.3000000}, //object{tree_hipoly07},{43},
- {959.9000200,-822.2000100,95.4000000}, //object{tree_hipoly07},{44},
- {974.4000200,-815.7999900,96.6000000}, //object{tree_hipoly07},{45},
- {975.9000200,-814.0000000,96.6000000}, //object{tree_hipoly07},{46},
- {1072.1000000,-777.5999800,106.3000000}, //object{tree_hipoly07},{47},
- {1071.1000000,-777.7999900,106.3000000}, //object{tree_hipoly07},{48},
- {831.9000200,-755.5000000,84.3000000}, //object{tree_hipoly07},{49},
- {915.2999900,-670.4000200,116.2000000} //object(tree_hipoly07)(50) // - 0
- };
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Temp[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- for(new i=0; i<MAX_TRASH_CANS; i++)
- {
- pickup_Trash = CreatePickup(1317, 1, gTrashBins_Locations[i][0],gTrashBins_Locations[i][1] ,gTrashBins_Locations[i][2]);
- }
- PreloadAnimLib(playerid,"BOMBER");
- PreloadAnimLib(playerid,"RAPPING");
- PreloadAnimLib(playerid,"SHOP");
- PreloadAnimLib(playerid,"BEACH");
- PreloadAnimLib(playerid,"SMOKING");
- PreloadAnimLib(playerid,"FOOD");
- PreloadAnimLib(playerid,"ON_LOOKERS");
- PreloadAnimLib(playerid,"DEALER");
- PreloadAnimLib(playerid,"CRACK");
- PreloadAnimLib(playerid,"CARRY");
- PreloadAnimLib(playerid,"COP_AMBIENT");
- PreloadAnimLib(playerid,"PARK");
- PreloadAnimLib(playerid,"INT_HOUSE");
- PreloadAnimLib(playerid,"GYMNASIUM");
- PreloadAnimLib(playerid,"MISC");
- PreloadAnimLib(playerid,"FOOD" );
- PreloadAnimLib(playerid,"PED" );
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == pickup_Trash)
- {
- SendClientMessage(playerid,0xDABB3EAA, "type /searchtrash here.");
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new index, cmd[20];
- cmd = strtok(cmdtext, index);
- if (strcmp(cmd, "/searchtrash", true) == 0)
- {
- if(gettime() - Temp[playerid] < 120) return SendClientMessage(playerid, 0xFF0000FF, "Please wait few minutes before searching again");
- Temp[playerid] = gettime();
- for(new i=0; i<MAX_TRASH_CANS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,gTrashBins_Locations[i][0],gTrashBins_Locations[i][1] ,gTrashBins_Locations[i][2]))
- {
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- }
- }
- switch (random(9))
- {
- case 0:
- {
- //SetTimer("freeze", 2000, false); // Set a timer of 1000 miliseconds (1 second)
- //GivePlayerWeapon(playerid, 24, 1);
- //TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_MSGBOX, "!", "You found a rusty desert eagle ,do you want to take it?", "Yes", "No");
- }
- case 1:
- {
- //SetTimer("freeze", 2000, false); // Set a timer of 1000 miliseconds (1 second)
- //GivePlayerWeapon(playerid, 12, 1);
- //TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- ShowPlayerDialog(playerid, DIALOG_DILDO, DIALOG_STYLE_MSGBOX, "!", "You found a dildo ,do you want to take it?", "Yes", "No");
- }
- case 2:
- {
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- //SetTimer("freeze", 2000, false); // Set a timer of 1000 miliseconds (1 second)
- //GivePlayerWeapon(playerid, 14, 1);
- //TogglePlayerControllable(playerid,0);
- ShowPlayerDialog(playerid, DIALOG_FLOWERS, DIALOG_STYLE_MSGBOX, "!", "You found some flowers ,do you want to take them?", "Yes", "No");
- }
- case 3:
- {
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- //SetTimer("freeze", 2000, false); // Set a timer of 1000 miliseconds (1 second)
- //GivePlayerMoney(playerid, 10);
- //TogglePlayerControllable(playerid,0);
- ShowPlayerDialog(playerid, DIALOG_MONEY, DIALOG_STYLE_MSGBOX, "!", "You found 10$ bucks,do you wish to take it?", "Yes", "No");
- }
- case 4:
- {
- ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff", 4.1, 0, 1, 1, 1, 1, 1);
- SetPlayerAttachedObject( playerid, 0, 1264, 2, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- SendClientMessage(playerid, COLOR_GREEN, "A trashbag got accidentaly stuck in your head.");
- SendClientMessage(playerid, COLOR_GREEN, "type /removetrashbag to remove trashbag.");
- //TogglePlayerControllable(playerid,0);
- //ShowPlayerDialog(playerid, DIALOG_FLOWERS, DIALOG_STYLE_MSGBOX, "!", "You found some flowers ,do you want to take them?", "Yes", "No");
- }
- case 5:
- {
- ApplyAnimation(playerid, "GANGS", "shake_cara", 4.1, 0, 1, 1, 1, 1, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You didn't find anything.");
- //GivePlayerWeapon(playerid, 14, 1);
- //TogglePlayerControllable(playerid,0);
- //ShowPlayerDialog(playerid, DIALOG_FLOWERS, DIALOG_STYLE_MSGBOX, "!", "You found some flowers ,do you want to take them?", "Yes", "No");
- }
- case 6:
- {
- //TogglePlayerControllable(playerid,0);
- ShowPlayerDialog(playerid, DIALOG_BURGER, DIALOG_STYLE_MSGBOX, "!", "You found a burger ,do you wish to take it?", "Yes", "No");
- }
- case 7:
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health - 10.0);
- ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff", 4.1, 0, 1, 1, 1, 1, 1);
- SendClientMessage(playerid, COLOR_GREEN, "A stray cat bit you.");
- }
- case 8:
- {
- if(IsFemaleSkin(playerid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "You're clothes got dirty.");
- SetPlayerSkin(playerid, 77);
- }
- if(IsMaleSkin(playerid))
- {
- switch (random(3))
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREEN, "You're clothes got dirty.");
- SetPlayerSkin(playerid, 78);
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_GREEN, "You're clothes got dirty.");
- SetPlayerSkin(playerid, 79);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_GREEN, "You're clothes got dirty.");
- SetPlayerSkin(playerid, 134);
- }
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmdtext, "/usedildo", true) == 0)
- {
- if(GetPlayerWeapon(playerid) == 12)
- {
- SetTimer("dildo", 10000, false); // Set a timer of 1000 miliseconds (1 second)
- ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,15000);
- SendClientMessage(playerid, COLOR_GREEN, "You're now puting it into your ass/vagina.");
- }
- else if(GetPlayerWeapon(playerid) >= 0)
- {
- SendClientMessage(playerid, 0xAA3333AA, "You need a dildo for this!");
- }
- return 1;
- }
- /*if(!strcmp(cmd,"/trash"))
- {
- SetPlayerPos(playerid, 1466.1000000,-1847.6000000,12.5000000);
- return 1;
- }*/
- if(!strcmp(cmdtext, "/removetrashbag", true)) // Remove Attached Objects
- {
- switch (random(1))
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_GREEN, "You removed the trashbag.");
- if(IsPlayerAttachedObjectSlotUsed(playerid,0))RemovePlayerAttachedObject(playerid,0);
- }
- case 1:
- {
- ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff", 4.1, 0, 1, 1, 1, 1, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You failed to remove trashbag.");
- }
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- //new r = random(sizeof(RandomWeapons));
- if(dialogid == DIALOG_WEAPON)
- {
- if(response) // If they clicked 'Yes' or pressed enter
- {
- //GivePlayerWeapon(playerid, RandomWeapons);
- TogglePlayerControllable(playerid,1);
- GivePlayerWeapon(playerid, 24, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You took the gun.");
- }
- else // Pressed ESC or clicked cancel
- {
- //GivePlayerWeapon(playerid, 12, 1);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You left the gun into dumpser.");
- //For info & code of this function please refer to the bottom of this article.
- }
- return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
- }
- if(dialogid == DIALOG_BURGER)
- {
- if(response) // If they clicked 'Yes' or pressed enter
- {
- TogglePlayerControllable(playerid,1);
- new Float:health;
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health + 10.0);
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 4.1, 0, 1, 1, 1, 1, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You ate the burger.");
- }
- else // Pressed ESC or clicked cancel
- {
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You left burger into dumpser.");
- //For info & code of this function please refer to the bottom of this article.
- }
- return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
- }
- if(dialogid == DIALOG_DILDO)
- {
- if(response) // If they clicked 'Yes' or pressed enter
- {
- TogglePlayerControllable(playerid,1);
- GivePlayerWeapon(playerid, 12, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You took the Dildo ,type /usedildo to use it.");
- }
- else // Pressed ESC or clicked cancel
- {
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You left dildo into dumpser.");
- //For info & code of this function please refer to the bottom of this article.
- }
- return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
- }
- if(dialogid == DIALOG_MONEY)
- {
- if(response) // If they clicked 'Yes' or pressed enter
- {
- GivePlayerMoney(playerid, 10);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You took the 10 bucks.");
- }
- else // Pressed ESC or clicked cancel
- {
- //GivePlayerMoney(playerid, -10);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You left the dollars into dumpster.");
- //For info & code of this function please refer to the bottom of this article.
- }
- return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
- }
- if(dialogid == DIALOG_FLOWERS)
- {
- if(response) // If they clicked 'Yes' or pressed enter
- {
- GivePlayerWeapon(playerid, 14, 1);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You took the flowers.");
- }
- else // Pressed ESC or clicked cancel
- {
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_GREEN, "You left the flowers into dumpser.");
- //For info & code of this function please refer to the bottom of this article.
- }
- return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
- }
- return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
- }
- stock IsPlayerNearObject(playerid, objectid, Float:range)
- {
- new Float:X, Float:Y, Float:Z;
- GetObjectPos(objectid, X, Y, Z);
- if(IsPlayerInRangeOfPoint(playerid, range, X, Y, Z))return true;
- return false;
- }
- public freeze(playerid)
- {
- TogglePlayerControllable(playerid,0);
- }
- public dildo(playerid)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Finished.");
- ClearAnimations(playerid);
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- stock IsFemaleSkin(skinid)
- {
- switch (skinid)
- {
- case
- 9, 11, 12, 13, 31, 38, 39, 40, 41, 53, 54,
- 55, 56, 65, 76, 77, 89, 91, 93, 129, 130,
- 131, 141, 148, 150, 151, 157, 169, 172, 190,
- 191, 192, 193, 194, 195, 196, 197, 198, 199,
- 211, 214, 215, 216, 218, 219, 224, 225, 226,
- 231, 232, 233, 263, 298: return 1;
- }
- return 0;
- }
- stock IsMaleSkin(skinid)
- {
- switch (skinid)
- {
- case
- 0,1,4,5,6,7,8,14,15,16,17,18,19,20,
- 21,22,23,24,25,26,27,28,29,30,36,37,42,43,44,45,46,49,32,33,34,35,2,
- 47,48,50,51,52,57,59,58,60,67,70,71,78,79,84,86,94,96,97,98,99,
- 62,68,72,73,80,81,82,83,95,100,
- 101,102,103,104,105,106,107,108,109,110,111,112,113,114,
- 115,116,117,118,119,120,121,122,123,124,125,126,127,128,132,133,134,
- 135,136,137,142,143,144,146,147,149,153,
- 154,155,156,158,159,160,161,162,163,164,165,166,167,168,
- 170,171,172,173,174,175,176,177,178,179,
- 181,182,183,184,185,186,187,188,200,265,180,189,202,203,204,206,208,
- 258,209,210,212,213,217,220,221,222,223,227,228,229,230,234,235,236,240,
- 241,242,247,248,249,250,252,254,261,262,264,266,267,268,269,270,271,272,
- 273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,
- 291,292,294,299,259,260,293,295,296,297,61,255,253: return 1;
- }
- return 0;
- }
- PreloadAnimLib(playerid, animlib[])
- {
- ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement