Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const MAX_PFANDPOINTS = 39;
- enum PfandInfo
- {
- Float:PfandX,
- Float:PfandY,
- Float:PfandZ
- }
- new PfandCheck[MAX_PFANDPOINTS];
- new Float:PfandPoint[MAX_PFANDPOINTS][PfandInfo] = {
- {-2656.8801, -189.0799, 4.1600},
- {-2653.8413, -188.3202, 4.1493},
- {-2657.9292, -168.9112, 4.0930},
- {-2654.4229, -167.5475, 4.0873},
- {-2658.2271, -125.2235, 4.0811},
- {-2654.7290, -124.7867, 4.0913},
- {-2657.2610, -89.6586, 4.1764},
- {-2755.4736, -85.3666, 7.0313},
- {-2758.8975, -96.8353, 6.9747},
- {-2754.3203, -121.5208, 6.9428},
- {-2758.1577, -120.8873, 6.9460},
- {-2758.2122, -136.2068, 6.9561},
- {-2754.3594, -149.8459, 6.9332},
- {-2754.9934, -178.3611, 6.9406},
- {-2755.9048, -56.5889, 7.0316},
- {-2759.6655, -54.3222, 7.0391},
- {-2756.9629, -36.4101, 6.9589},
- {-2762.6553, -13.6680, 6.9620},
- {-2747.3860, -7.6174, 6.1266},
- {-2760.5159, 7.7574, 6.9597},
- {-2764.9810, 24.9508, 7.0391},
- {-2765.3809, 51.9959, 7.0313},
- {-2761.4150, 63.7890, 6.9699},
- {-2765.1643, 86.6178, 6.9705},
- {-2718.9524, 77.9534, 4.3359},
- {-2718.0142, 74.3200, 4.3359},
- {-2755.2183, 90.3605, 7.0313},
- {-2755.4519, 93.3741, 7.0313},
- {-2756.9231, 95.9098, 7.0313},
- {-2762.1326, 115.1328, 6.9651},
- {-2759.3367, 144.3392, 7.0313},
- {-2647.1279, 12.5979, 6.1328},
- {-2649.9084, 12.5699, 6.1328},
- {-2650.8762, 52.6681, 4.1797},
- {-2655.5486, 71.6336, 4.1091},
- {-2652.2974, 92.4136, 4.0967},
- {-2655.6631, 115.3238, 4.1118},
- {-2652.9587, 133.3726, 4.1797},
- {-2656.7205, 135.6254, 4.1797}
- };
- ocmd:durchsuchen(playerid, params[])
- {
- for(new i = 0; i < MAX_PFANDPOINTS; i++)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 2, PfandPoint[i][PfandX], PfandPoint[i][PfandY], PfandPoint[i][PfandZ])) return SendClientMessage(playerid, COLOR_RED, "Du befindest dich an keiner Mülltonne!");
- {
- if(PfandCheck[i] != 0) return SendClientMessage(playerid, COLOR_RED, "Diese Mülltonne wurde bereits durchsucht!");
- {
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement