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 Bouteille[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);
- Bouteille[0] = CreateObject(2683, -3904.12231, 1688.94543, 3.49450, 0.00000, 0.00000, 0.00000);
- Bouteille[1] = CreateObject(2683, -3902.34326, 1687.01306, 3.50350, 0.00000, 0.00000, 0.00000);
- Bouteille[2] = CreateObject(2683, -3898.33032, 1688.29285, 3.48750, 0.00000, 0.00000, 0.00000);
- Bouteille[3] = CreateObject(2683, -3905.05713, 1688.24988, 3.49350, 0.00000, 0.00000, 0.00000);
- ENTER = CreatePickup(1274, 2, 1367.9200,-1279.9858,13.5469);
- return 1;
- }
- 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 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);
- return 1;
- }
- if(hittype == 3)
- {
- if(hitid == Bouteille[0] || hitid == Bouteille[1] || hitid == Bouteille[2] || hitid == Bouteille[3])
- {
- Point[playerid]++;
- 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);
- return 1;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment