Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <properties> //You need this Include (.inc)
- public OnFilterScriptInit()
- {
- print("----------------------------------------");
- print(" Properties Filterscipt ");
- print(" by [HiC]TheKiller ");
- print("----------------------------------------");
- UsePropertyTextDraw(0);
- SetMaxPropertiesPerPlayer(999); //Change this for different MAX properties
- SetPayoutFrequency(120);// Change this for a different payout time
- //==============================================================================
- //To add/change properties the format is AddProperty({name}, {co-ordonates, {Buyprice}, {Sellprice},{Earning});
- AddProperty("4Dragons", 1993.36, 1018.19, 994.89, 300000, 200000, 7000);
- AddProperty("City_Planning", 361.94, 173.60, 1008.38, 50000, 35000, 1500);
- AddProperty("Pyramid", 2318.73, 1261.27, 67.46, 100000, 85000, 3000);
- AddProperty("Wang_cars", -1959.17, 303.12, 35.46, 100000, 70000, 3000);
- AddProperty("Caligulas_Casino", 2235.43, 1681.08, 1008.35, 400000, 350000, 10000);
- AddProperty("Jizzys", -2647.88, 1408.03, 906.27, 200000, 100000, 4500);
- AddProperty("A_Staircase", 1955.39, 1342.86, 15.37, 10000, 7000, 500);
- AddProperty("LV_Shithole_carpark", 2313.88, 1389.86, 14.34, 50000, 25000, 2000);
- AddProperty("Otto's_auto", -1656.90, 1209.58, 8.14, 50000, 30000, 3000);
- AddProperty("The_Visage", 2022.54, 1913.75, 12.31, 200000, 145000, 4500);
- AddProperty("SFpeterolstation", -1674.35, 430.65, 7.17, 10000, 5000, 500);
- AddProperty("Clowns_Pocket", 2207.96, -1072.14, 1050.47, 50000, 44000, 3500);
- AddProperty("TheDMV", -2029.43, -116.22, 1035.17, 20000, 10000, 1000);
- AddProperty("Starfish_Casino", 2306.60, 1904.73, 10.97, 100000, 83000, 3000);
- AddProperty("Coalrip", -1851.42, -1697.87, 40.86, 100000, 50000, 3000);
- AddProperty("LVStrip_Shops", 2107.74, 2072.63, 10.82, 70000, 60000, 4000);
- AddProperty("Extremepro-laps", -2409.37, -2190.26, 34.03, 70000, 35000, 1300);
- AddProperty("Emerald_Isle", 2127.19, 2375.83, 10.82, 100000, 75000, 4500);
- AddProperty("Trans_fender", 2380.86, 1039.09, 10.62, 30000, 15000, 1300);
- AddProperty("Basketball_court", 2496.95, 1292.41, 10.81, 5000, 2500, 150);
- AddProperty("Motel", 2483.79, 1527.26, 11.16, 100000, 50000, 3000);
- AddProperty("Caconca", 2436.02, 1671.98, 10.82, 80000, 40000, 2700);
- AddProperty("Clowns_Pocket", 2223.90, 1838.37, 10.38, 150000, 75000, 4000);
- AddProperty("Sex_Shop", -103.19, -21.26, 1000.71, 40000, 20000, 1300);
- AddProperty("Gifts&Jewlery", 2368.70, 2123.23, 10.84, 50000, 25000, 1500);
- AddProperty("Stripper's_Bar", 1210.04, -10.01, 1000.92, 15000, 7500, 700);
- AddProperty("LV_Airport", 1679.59, 1452.50, 10.77, 10000000, 5000000, 50000);
- AddProperty("LV_Hospital", 1606.62, 1821.82, 10.82, 200000, 100000, 6000);
- AddProperty("Apartment_Block1", 1477.85, 1992.12, 11.02, 100000, 50000, 2500);
- AddProperty("Apartment_Block2", 1532.42, 1921.98, 10.36, 100000, 50000, 2500);
- AddProperty("Apartment_Block3", 1632.52, 1923.81, 10.35, 100000, 50000, 2500);
- AddProperty("Apartment_Block4", 1634.33, 1965.26, 10.39, 100000, 50000, 2500);
- AddProperty("$hody_Cars", 1669.01, 1826.15, 10.82, 40000, 20000, 1300);
- AddProperty("Discount_Furniture", 1654.75, 1774.71, 10.82, 40000, 20000, 1200);
- AddProperty("Tatoo_Parlor", -203.21, -41.76, 1002.27, 15000, 7500, 700);
- AddProperty("Gay_Gordo's", 418.64, -82.64, 1001.80, 15000, 7500, 700);
- AddProperty("ZIP", 161.39, -85.25, 1001.80, 30000, 15000, 1200);
- AddProperty("Binco", 207.99, -102.65, 1005.25, 30000, 15000, 1200);
- AddProperty("Soapys_Carwash", 2153.51, 2461.01, 10.37, 5000, 2500, 200);
- AddProperty("Souvenirs_Shop", 1891.96, 2417.98, 10.74, 50000, 25000, 1500);
- AddProperty("Golf_Club", 1462.27, 2772.49, 10.32, 150000, 75000, 3500);
- AddProperty("Cj's_House", 2496.05, -1697.81, 1014.73, 10000, 7000, 500);
- AddProperty("Uni-tell", 2418.31, -1760.92, 13.39, 15000, 8000, 600);
- AddProperty("Estacionamientu", 2275.31, -1723.46, 13.11, 15000, 8700, 400);
- AddProperty("Sity_Burgurs", 2161.30, -1745.94, 13.10, 5000, 1000, 200);
- AddProperty("Tony's_Liquor", 2088.79, -1911.54, 13.11, 10000, 6000, 300);
- AddProperty("Kimono_Hotel", 1235.61, -1858.10, 13.11, 20000, 15000, 1200);
- AddProperty("Ranch", 470.91, -1575.48, 24.58, 20000, 12000, 1200);
- AddProperty("Victim", 210.89, -7.60, 1005.21, 30000, 23000, 1400);
- AddProperty("Train_hard", 207.05, -135.94, 1002.87, 30000, 21000, 1400);
- AddProperty("Kevin_Clone", 555.47, -1425.30, 15.43, 40000, 32000, 1550);
- AddProperty("Interglobal", 644.77, -1362.64, 13.59, 200000, 150000, 4900);
- AddProperty("Power_Vidio", 816.54, -1057.22, 24.60, 7000, 4000, 400);
- AddProperty("Hobos", 873.84, -974.75, 37.18, 20000, 15000, 700);
- AddProperty("Robois_food_mart", 1315.33, -900.78, 39.57, 10000, 6000, 500);
- AddProperty("Car_Yard", 2131.00, -1149.88, 24.20, 50000, 28000, 1800);
- AddProperty("Pig_Pen", 2425.16, -1221.30, 25.43, 30000, 20000, 1300);
- AddProperty("Golden_Palms", 2743.96, -1190.67, 69.39, 50000, 34000, 1800);
- AddProperty("Conhita_Market", 2750.86, -1461.65, 30.02, 40000, 29000, 1600);
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyAllPropertyPickups();
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- ResetPlayerPropertyInfo(playerid);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new idx;
- cmd = strtok(cmdtext, idx);
- if (strcmp("/myproperties", cmdtext,true) == 0)
- {
- GetPlayerProperties(playerid);
- return 1;
- }
- if (strcmp("/buy", cmdtext, true) == 0)
- {
- BuyPropertyForPlayer(playerid);
- return 1;
- }
- if (strcmp("/sell", cmdtext, true) == 0)
- {
- SellPropertyForPlayer(playerid);
- return 1;
- }
- if (strcmp("/Findproperty", cmd, true) == 0)
- {
- new tmp[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFF0000AA, "USAGE: /Findproperty [PropertyID]");
- return 1;
- }
- new prop = strval(tmp);
- if(!DoesPropertyExists(prop)) return SendClientMessage(playerid, 0xFF0000AA, "This property does not exists!");
- LocatePropertyForPlayer(prop, playerid);
- return 1;
- }
- if (strcmp("/propertyhelp", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, 0xAA3333AA, "Property Commands:");
- SendClientMessage(playerid, 0xAA3333AA, "/buy, /sell /Findproperty [ID]");
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- OnPropertyPickupPickup(playerid, pickupid);
- return 1;
- }
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement