Guest User

Untitled

a guest
Feb 22nd, 2014
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new EnCours[MAX_PLAYERS];
  4. new Point[MAX_PLAYERS];
  5. new Bouteille[4];
  6. new ENTER;
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. CreateObject(19377, -3894.46997, 1703.28125, 0.78550, 0.00000, 0.00000, 0.00000);
  11. CreateObject(19377, -3894.42383, 1696.83154, 0.78550, 0.00000, 0.00000, 0.00000);
  12. CreateObject(19377, -3894.42383, 1687.37854, 0.78550, 0.00000, 0.00000, 0.00000);
  13. CreateObject(19377, -3899.09863, 1682.38745, 0.78550, 0.00000, 0.00000, 92.88600);
  14. CreateObject(19377, -3908.47974, 1681.84302, 0.78550, 0.00000, 0.00000, 92.88600);
  15. CreateObject(19377, -3913.45386, 1686.39490, 1.19650, 0.00000, 0.00000, 3.28800);
  16. CreateObject(19377, -3913.95996, 1695.78271, 1.19650, 0.00000, 0.00000, 3.28800);
  17. CreateObject(19377, -3914.31958, 1702.38281, 1.19650, 0.00000, 0.00000, 3.28800);
  18. CreateObject(19377, -3909.87207, 1707.30249, 0.78550, 0.00000, 0.00000, 92.88600);
  19. CreateObject(19377, -3900.39600, 1707.78857, 0.78550, 0.00000, 0.00000, 92.88600);
  20. CreateObject(19377, -3899.16162, 1707.95483, 0.78550, 0.00000, 0.00000, 92.88600);
  21. CreateObject(19375, -3899.40259, 1703.11121, 1.21850, 0.00000, 90.00900, 2.46600);
  22. CreateObject(19375, -3899.02222, 1693.67810, 1.21850, 0.00000, 90.00900, 2.46600);
  23. CreateObject(19375, -3898.70898, 1686.61523, 1.21850, 0.00000, 90.00900, 2.46600);
  24. CreateObject(19375, -3909.32471, 1702.38745, 1.21850, 0.00000, 90.00900, 2.46600);
  25. CreateObject(19375, -3908.70215, 1692.89294, 1.21850, 0.00000, 90.00900, 2.46600);
  26. CreateObject(19375, -3908.86816, 1686.22925, 1.21850, 0.00000, 90.00900, 2.46600);
  27. CreateObject(19375, -3908.87158, 1686.20959, -0.01450, 0.00000, 90.00900, 2.46600);
  28. CreateObject(19377, -3899.38696, 1698.85767, -2.91350, 0.00000, 0.00000, 92.88600);
  29. CreateObject(19377, -3909.02075, 1698.37439, -2.91350, 0.00000, 0.00000, 92.88600);
  30. CreateObject(19375, -3899.34570, 1686.80249, 6.15050, 0.00000, 90.00900, 2.46600);
  31. CreateObject(19375, -3899.11621, 1696.26880, 6.15050, 0.00000, 90.00900, 2.46600);
  32. CreateObject(19375, -3899.55347, 1705.66589, 6.15050, 0.00000, 90.00900, 2.46600);
  33. CreateObject(19375, -3909.63794, 1705.30725, 6.15050, 0.00000, 90.00900, 2.46600);
  34. CreateObject(19375, -3908.43872, 1695.67554, 6.15050, 0.00000, 90.00900, 2.46600);
  35. CreateObject(19375, -3908.52686, 1686.51489, 6.15050, 0.00000, 90.00900, 2.46600);
  36. CreateObject(19377, -3909.02075, 1698.37439, 9.58650, 0.00000, 0.00000, 92.88600);
  37. CreateObject(19377, -3909.02075, 1698.37439, -2.91350, 0.00000, 0.00000, 92.88600);
  38. CreateObject(19377, -3899.52026, 1698.89758, 9.58650, 0.00000, 0.00000, 92.88600);
  39. CreateObject(18260, -3902.97119, 1687.41785, 2.94590, 0.00000, 0.00000, 0.00000);
  40. Bouteille[0] = CreateObject(2683, -3904.12231, 1688.94543, 3.49450, 0.00000, 0.00000, 0.00000);
  41. Bouteille[1] = CreateObject(2683, -3902.34326, 1687.01306, 3.50350, 0.00000, 0.00000, 0.00000);
  42. Bouteille[2] = CreateObject(2683, -3898.33032, 1688.29285, 3.48750, 0.00000, 0.00000, 0.00000);
  43. Bouteille[3] = CreateObject(2683, -3905.05713, 1688.24988, 3.49350, 0.00000, 0.00000, 0.00000);
  44. ENTER = CreatePickup(1274, 2, 1367.9200,-1279.9858,13.5469);
  45. return 1;
  46. }
  47.  
  48. public OnPlayerPickUpPickup(playerid, pickupid)
  49. {
  50. if(pickupid == ENTER)
  51. {
  52. SetPlayerInterior(playerid,0);
  53. TogglePlayerClock(playerid,0);
  54. SetPlayerHealth(playerid,9999999);
  55. SetPlayerPos(playerid,-3899.4026, 1703.1112, 1.2185+3);
  56. GivePlayerWeapon(playerid,24,6);
  57. EnCours[playerid] = 1;
  58. }
  59. return 1;
  60. }
  61.  
  62. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  63. {
  64. if(EnCours[playerid] == 1)
  65. {
  66. if(GetPlayerAmmo(playerid) == 1)
  67. {
  68. SendClientMessage(playerid,-1,"{B9121B}Your license is missed");
  69. Point[playerid] = 0;
  70. SetPlayerPos(playerid,1350.1563, -1250.8359, 14.1328);
  71. return 1;
  72. }
  73. if(hittype == 3)
  74. {
  75. if(hitid == Bouteille[0] || hitid == Bouteille[1] || hitid == Bouteille[2] || hitid == Bouteille[3])
  76. {
  77. Point[playerid]++;
  78. if(Point[playerid] == 4)
  79. {
  80. SendClientMessage(playerid,-1,"{77FE01}Congratulations!! {CCCCCC}You have successfully completed your license");
  81. Point[playerid] = 0;
  82. SetPlayerPos(playerid,1350.1563, -1250.8359, 14.1328);
  83. ResetPlayerWeapons(playerid);
  84. return 1;
  85. }
  86. }
  87. }
  88. }
  89. return 1;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment