Advertisement
Guest User

Untitled

a guest
Nov 24th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1.  
  2. const MAX_PFANDPOINTS = 39;
  3.  
  4. enum PfandInfo
  5. {
  6. Float:PfandX,
  7. Float:PfandY,
  8. Float:PfandZ
  9. }
  10.  
  11. new PfandCheck[MAX_PFANDPOINTS];
  12. new Float:PfandPoint[MAX_PFANDPOINTS][PfandInfo] = {
  13. {-2656.8801, -189.0799, 4.1600},
  14. {-2653.8413, -188.3202, 4.1493},
  15. {-2657.9292, -168.9112, 4.0930},
  16. {-2654.4229, -167.5475, 4.0873},
  17. {-2658.2271, -125.2235, 4.0811},
  18. {-2654.7290, -124.7867, 4.0913},
  19. {-2657.2610, -89.6586, 4.1764},
  20. {-2755.4736, -85.3666, 7.0313},
  21. {-2758.8975, -96.8353, 6.9747},
  22. {-2754.3203, -121.5208, 6.9428},
  23. {-2758.1577, -120.8873, 6.9460},
  24. {-2758.2122, -136.2068, 6.9561},
  25. {-2754.3594, -149.8459, 6.9332},
  26. {-2754.9934, -178.3611, 6.9406},
  27. {-2755.9048, -56.5889, 7.0316},
  28. {-2759.6655, -54.3222, 7.0391},
  29. {-2756.9629, -36.4101, 6.9589},
  30. {-2762.6553, -13.6680, 6.9620},
  31. {-2747.3860, -7.6174, 6.1266},
  32. {-2760.5159, 7.7574, 6.9597},
  33. {-2764.9810, 24.9508, 7.0391},
  34. {-2765.3809, 51.9959, 7.0313},
  35. {-2761.4150, 63.7890, 6.9699},
  36. {-2765.1643, 86.6178, 6.9705},
  37. {-2718.9524, 77.9534, 4.3359},
  38. {-2718.0142, 74.3200, 4.3359},
  39. {-2755.2183, 90.3605, 7.0313},
  40. {-2755.4519, 93.3741, 7.0313},
  41. {-2756.9231, 95.9098, 7.0313},
  42. {-2762.1326, 115.1328, 6.9651},
  43. {-2759.3367, 144.3392, 7.0313},
  44. {-2647.1279, 12.5979, 6.1328},
  45. {-2649.9084, 12.5699, 6.1328},
  46. {-2650.8762, 52.6681, 4.1797},
  47. {-2655.5486, 71.6336, 4.1091},
  48. {-2652.2974, 92.4136, 4.0967},
  49. {-2655.6631, 115.3238, 4.1118},
  50. {-2652.9587, 133.3726, 4.1797},
  51. {-2656.7205, 135.6254, 4.1797}
  52. };
  53.  
  54. ocmd:durchsuchen(playerid, params[])
  55. {
  56. for(new i = 0; i < MAX_PFANDPOINTS; i++)
  57. {
  58. 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!");
  59. {
  60. if(PfandCheck[i] != 0) return SendClientMessage(playerid, COLOR_RED, "Diese Mülltonne wurde bereits durchsucht!");
  61. {
  62.  
  63. }
  64. }
  65. }
  66. return 1;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement