Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new EnCours[MAX_PLAYERS];
- new Point[MAX_PLAYERS];
- new Cible[4];
- new CibleStatus[4];
- new ENTER;
- public OnFilterScriptInit()
- {
- CreateObject(19377, -3894.46997, 1703.28125, 0.78550, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, -3894.42383, 1696.83154, 0.78550, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, -3894.42383, 1687.37854, 0.78550, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, -3899.09863, 1682.38745, 0.78550, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3908.47974, 1681.84302, 0.78550, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3913.45386, 1686.39490, 1.19650, 0.00000, 0.00000, 3.28800);
- CreateObject(19377, -3913.95996, 1695.78271, 1.19650, 0.00000, 0.00000, 3.28800);
- CreateObject(19377, -3914.31958, 1702.38281, 1.19650, 0.00000, 0.00000, 3.28800);
- CreateObject(19377, -3909.87207, 1707.30249, 0.78550, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3900.39600, 1707.78857, 0.78550, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3899.16162, 1707.95483, 0.78550, 0.00000, 0.00000, 92.88600);
- CreateObject(19375, -3899.40259, 1703.11121, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3899.02222, 1693.67810, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3898.70898, 1686.61523, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3909.32471, 1702.38745, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3908.70215, 1692.89294, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3908.86816, 1686.22925, 1.21850, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3908.87158, 1686.20959, -0.01450, 0.00000, 90.00900, 2.46600);
- CreateObject(19377, -3899.38696, 1698.85767, -2.91350, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3909.02075, 1698.37439, -2.91350, 0.00000, 0.00000, 92.88600);
- CreateObject(19375, -3899.34570, 1686.80249, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3899.11621, 1696.26880, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3899.55347, 1705.66589, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3909.63794, 1705.30725, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3908.43872, 1695.67554, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19375, -3908.52686, 1686.51489, 6.15050, 0.00000, 90.00900, 2.46600);
- CreateObject(19377, -3909.02075, 1698.37439, 9.58650, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3909.02075, 1698.37439, -2.91350, 0.00000, 0.00000, 92.88600);
- CreateObject(19377, -3899.52026, 1698.89758, 9.58650, 0.00000, 0.00000, 92.88600);
- CreateObject(18260, -3902.97119, 1687.41785, 2.94590, 0.00000, 0.00000, 0.00000);
- Cible[0] = CreateObject(1583, -3910.62695, 1692.39905, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[1] = CreateObject(1583, -3905.80786, 1688.31018, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[2] = CreateObject(1583, -3899.79858, 1690.89612, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[3] = CreateObject(1583, -3898.26343, 1685.98938, 1.30020, 0.00000, 0.00000, 0.00000);
- CibleStatus[0] = 0;
- CibleStatus[1] = 0;
- CibleStatus[2] = 0;
- CibleStatus[3] = 0;
- ENTER = CreatePickup(1274, 2, 1367.9200,-1279.9858,13.5469);
- SetTimer("BougerCible", 1000,true);
- return 1;
- }
- stock minrand(min, max) //By Alex "Y_Less" Cole
- {
- return random(max - min) + min;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == ENTER)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerClock(playerid,0);
- SetPlayerHealth(playerid,9999999);
- SetPlayerPos(playerid,-3899.4026, 1703.1112, 1.2185+3);
- GivePlayerWeapon(playerid,24,6);
- EnCours[playerid] = 1;
- }
- return 1;
- }
- public BougerCible()
- {
- CibleStatus[0] = minrand(0, 2);
- CibleStatus[1] = minrand(0, 2);
- CibleStatus[2] = minrand(0, 2);
- CibleStatus[3] = minrand(0, 2);
- if(CibleStatus[0] == 0)
- {
- MoveObject(Cible[0], -3899.79858, 1690.89612, 1.30020,4.5);
- }
- if(CibleStatus[0] == 1)
- {
- MoveObject(Cible[0], -3910.62695, 1692.89905, 1.30020,4.5);
- }
- if(CibleStatus[1] == 0)
- {
- MoveObject(Cible[1], -3905.80786, 1688.81018, 1.30020,4.5);
- }
- if(CibleStatus[1] == 1)
- {
- MoveObject(Cible[1], -3902.30786, 1688.81018, 1.30020,4.5);
- }
- if(CibleStatus[2] == 0)
- {
- MoveObject(Cible[2],-3907.29858, 1690.89612, 1.30020,4.5);
- }
- if(CibleStatus[2] == 1)
- {
- MoveObject(Cible[2],-3900.79858, 1690.89612, 1.30020,4.5);
- }
- if(CibleStatus[3] == 0)
- {
- MoveObject(Cible[3],-3898.26343, 1685.98938, 1.30020,4.5);
- }
- if(CibleStatus[3] == 1)
- {
- MoveObject(Cible[3],-3899.76343, 1683.98938, 1.30020,4.5);
- }
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(EnCours[playerid] == 1)
- {
- if(GetPlayerAmmo(playerid) == 1)
- {
- SendClientMessage(playerid,-1,"{B9121B}Your license is missed");
- Point[playerid] = 0;
- SetPlayerPos(playerid,1350.1563, -1250.8359, 14.1328);
- DestroyObject(Cible[0]);
- DestroyObject(Cible[1]);
- DestroyObject(Cible[2]);
- DestroyObject(Cible[3]);
- Cible[0] = CreateObject(1583, -3910.62695, 1692.39905, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[1] = CreateObject(1583, -3905.80786, 1688.31018, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[2] = CreateObject(1583, -3899.79858, 1690.89612, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[3] = CreateObject(1583, -3898.26343, 1685.98938, 1.30020, 0.00000, 0.00000, 0.00000);
- return 1;
- }
- if(hittype == 3)
- {
- if(hitid == Cible[0] || hitid == Cible[1] || hitid == Cible[2] || hitid == Cible[3])
- {
- Point[playerid]++;
- DestroyObject(hitid);
- if(Point[playerid] == 4)
- {
- SendClientMessage(playerid,-1,"{77FE01}Congratulations!! {CCCCCC}You have successfully completed your license");
- Point[playerid] = 0;
- SetPlayerPos(playerid,1350.1563, -1250.8359, 14.1328);
- ResetPlayerWeapons(playerid);
- DestroyObject(Cible[0]);
- DestroyObject(Cible[1]);
- DestroyObject(Cible[2]);
- DestroyObject(Cible[3]);
- Cible[0] = CreateObject(1583, -3910.62695, 1692.39905, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[1] = CreateObject(1583, -3905.80786, 1688.31018, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[2] = CreateObject(1583, -3899.79858, 1690.89612, 1.30020, 0.00000, 0.00000, 0.00000);
- Cible[3] = CreateObject(1583, -3898.26343, 1685.98938, 1.30020, 0.00000, 0.00000, 0.00000);
- return 1;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement