Hallo,
Ich habe eine frage,
Wen ich müllsäcke geladen habe und ich /garbagestop mache und ich ihn den Checkpoint rein fahre passiert nichts....
& noch eine frage möchte gerne ein limit setzen von 15 Kubikmeter.
Das heißt pro Müllsack 0.1 Kubikmeter.
Das Problem ist ich weiß nicht wie ich das am besten mache...
Und ich wollte noch fragen wie ich mehrere müllsäcke machen kann an einem haus nicht nur ein Müllsack...
so random 3-11 Müllsäcke
Verschiedene CP´s + enum
Code
enum etrashcp
{
Float:trashx,
Float:trashy,
Float:trashz,
Float:trashr
}
new Trash[][etrashcp] = {
{794.9425,-1691.0753,14.4633,186.4118}, // Cp
{693.5453,-1705.8850,3.8195,87.1076}, // Cp
{813.6225,-1456.6826,14.1957,265.6858}, // Cp
{824.5962,-1424.2037,14.4989,182.0251}, // Cp
{898.5118,-1445.3795,14.3659,342.2849}, // Cp
{993.8130,-1058.6859,33.6995,176.6983}, // Cp
{1050.9467,-1058.8225,34.7966,263.2283}, // Cp
{1103.2881,-1068.9379,31.8899,131.1688}, // Cp
{1103.4055,-1092.4241,28.4688,279.7628}, // Cp
{1183.4268,-1076.0887,31.6789,268.1694}, // Cp
{1141.8046,-1069.8885,31.7656,115.5746}, // Cp
{1142.1207,-1092.8011,28.1875,173.3010}, // Cp
{1183.4757,-1098.6788,28.2578,214.2755}, // Cp
{1241.9468,-1076.3306,31.5547,125.5779}, // Cp
{1242.2614,-1099.5583,27.9766,82.9642}, // Cp
{1285.2373,-1090.0297,28.2578,14.7294}, // Cp
{1285.2601,-1067.6729,31.6789,203.1894}, // Cp
{1280.9507,-874.7227,46.8438,55.3906}, // Cp
{1287.3843,-867.5901,46.8361,260.9158}, // Cp
{1283.5371,-897.8746,46.6251,97.9809}, // Cp
{1291.0092,-896.7874,46.6251,267.8092}, // Cp
{1284.3386,-903.9626,46.6328,92.6542}, // Cp
{1248.7716,-870.9055,46.6329,212.8793}, // Cp
{1249.6079,-877.2777,46.6406,185.9324}, // Cp
{1242.1312,-878.3453,46.6406,100.8009}, // Cp
{1245.4132,-902.9389,46.5939,95.1609}, // Cp
{1253.7122,-908.0971,46.6016,268.4359}, // Cp
{1331.9077,-632.9627,109.1349,256.8915}, // Cp
{1094.9346,-647.3595,113.6484,139.6313}, // Cp
{980.6241,-677.1758,121.9763,201.6719}, // Cp
{898.1547,-677.3608,116.8904,57.2238}, // Cp
{946.2059,-710.4578,122.6199,217.6520}, // Cp
{848.1666,-745.2547,94.9693,142.4513}, // Cp
{937.8997,-848.6906,93.5784,220.7854}, // Cp
{989.7983,-828.6566,95.4686,216.7120}, // Cp
{559.1422,-1076.3977,72.9220,283.5486}, // Cp
{743.2484,-509.3180,18.0129,275.5466}, // Cp
{766.7100,-556.7849,18.0129,183.1850}, // Cp
{818.1732,-509.3184,18.0129,354.8698}, // Cp
{300.3638,-1154.5712,81.3911,325.7296}, // Cp
{219.2660,-1249.7825,78.3363,37.4602}, // Cp
{254.3854,-1367.1346,53.1094,143.0311}, // Cp
{355.1710,-1281.1405,53.7036,281.5749}, // Cp
{192.7013,-1747.4105,4.3052,95.9346}, // Cp
{1227.2362,-1017.0833,36.3359,104.4907}, // Cp
{1234.7462,-1016.2435,36.3359,291.5291}, // Cp
{1226.4456,-1011.0752,36.3283,113.8908}, // Cp
{1188.9938,-1017.9824,36.2344,163.7838}, // Cp
{1195.6772,-1010.8715,36.2267,284.3223}, // Cp
{1468.5289,-906.1848,54.8359,90.2946}, // Cp
{1411.1768,-920.8756,38.4219,160.9403}, // Cp
{1905.9674,-1112.9432,26.6641,355.7395}, // Cp
{1939.0132,-1114.4823,27.4523,89.4996}, // Cp
{2022.9181,-1120.2643,26.4210,354.4861}, // Cp
{2091.6624,-1184.2983,27.0571,341.3260}, // Cp
{2133.4949,-1232.9990,24.4219,171.2079}, // Cp
{2229.9961,-1280.0646,25.6285,79.1829}, // Cp
{2196.2783,-1403.9886,25.9488,102.5872}, // Cp
{2190.4436,-1470.2382,25.9141,86.2936}, // Cp
{2146.7961,-1470.5190,26.0426,192.4187}, // Cp
{2165.9714,-1671.1547,15.0732,48.3565}, // Cp
{2282.3792,-1641.2141,15.8898,80.3894}, // Cp
{2384.5945,-1675.5986,14.9152,195.2878}, // Cp
{2385.3970,-1711.6554,14.2422,11.7195}, // Cp
{2486.4761,-2021.5526,13.9988,188.7312}, // Cp
{2508.2336,-1998.3652,13.9025,352.9194}, // Cp
{2652.6477,-1989.4297,13.9988,354.1961}, // Cp
{2673.3208,-2020.2909,14.1682,170.2677}, // Cp
{2696.2878,-1990.3590,14.2229,357.6194}, // Cp
{2492.1523,-1239.0177,37.9054,104.5396}, // Cp
{2550.9219,-1233.7920,49.3318,357.3060}, // Cp
{2230.1074,-1280.0651,25.6285,4.1994}, // Cp
{2153.7759,-1243.8062,25.3672,178.7043}, // Cp
{2443.8462,92.3561,28.4416,105.6503}, // Cp
{2511.5400,57.2162,27.6835,97.9128}, // Cp
{2551.1211,57.0197,27.6756,294.2787}, // Cp
{2480.5459,126.9939,27.6756,9.1660}, // Cp
{2373.8467,22.0649,28.4416,93.1401}, // Cp
{2392.2974,-54.9637,28.1536,179.6209}, // Cp
{2270.4578,-7.4983,28.1535,16.6861}, // Cp
{2245.4641,-122.2923,28.1535,262.1010}, // Cp
{2199.9502,-37.4172,28.1535,67.1332} // Cp
};
Alles anzeigen
//Zum abbrechen der Tour
Code
CMD:garbagestop(playerid,params[])
{
if(Spieler[playerid][pJob] != 7)return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Müllfahrer.");
if(GetPVarInt(playerid,"InGarbage")!=1)return SendClientMessage(playerid, COLOR_GREY,"Du bist nicht am Jobben.");
new pID = GetPVarInt(playerid,"GarbagePartner");
if(!IsLoggedIn(pID))
{
SendClientMessage(playerid, COLOR_GREY,"Dein Partner ist offline. Runde abgebrochen.");
SetPVarInt(playerid,"MussTrashHolen",0);
SetPVarInt(playerid,"MussTrashBringen",0);
SetPVarInt(playerid,"TrashCPRound",0);
SetPVarInt(playerid,"GbVerdient",0);
SetPVarInt(pID,"GbVerdient",0);
return 1;
}
SetPlayerCheckpoint(playerid,1772.1411,-2022.6681,14.1362,6.0);
SetPlayerCheckpoint(pID,1772.1411,-2022.6681,14.1362,6.0);
SetPVarInt(playerid,"MussTrashHolen",0);
SetPVarInt(playerid,"MussTrashBringen",0);
SetPVarInt(playerid,"TrashCPRound",0);
SetPVarInt(pID,"MussTrashHolen",0);
SetPVarInt(pID,"MussTrashBringen",0);
SetPVarInt(pID,"TrashCPRound",0);
SendClientMessage(playerid, COLOR_WHITE,"{ABC5E5}Die Abgabestelle der Mülldeponie wurde auf der Map rot markiert.");
SendClientMessage(pID, COLOR_WHITE,"{ABC5E5}Die Abgabestelle der Mülldeponie wurde auf der Map rot markiert.");
return 1;
}
Alles anzeigen
//Zum Abladen
Code
forward GarbageWait(playerid);
public GarbageWait(playerid)
{
new string[128];
SetPVarInt(playerid,"MussTrashAbliefern",0);
SetPVarInt(playerid,"TrashCPRound",0);
SetPVarInt(playerid,"MussTrashHolen",0);
SetPVarInt(playerid,"MussTrashBringen",0);
SetPVarInt(playerid,"InGarbage",0);
TogglePlayerControllable(playerid,1);
format(string,sizeof(string),"Du hast - Kubikmeter Müll abgeliefert und erhälst am nächsten Payday %i$.", GetPVarInt(playerid,"GbVerdient"));
SendClientMessage(playerid,0x006F7DFF, string);
Spieler[playerid][pJobMoney] += GetPVarInt(playerid,"GbVerdient");
SetPVarInt(playerid,"GbVerdient",0);
return 1;
}
Alles anzeigen