Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- new Ccp[MAX_PLAYERS];
- new specialcar;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" L O A D E D ");
- print(" Filtescript made ");
- print(" by: ZaBraNjeNi ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" U N - L O A D E D ");
- print(" Filtescript made ");
- print(" by: ZaBraNjeNi ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- CreateObject(3881, 1960.08521, -1247.36475, 20.76262, 0.00000, 0.00000, 270.42389);
- CreateObject(2162, 1960.18982, -1249.15149, 19.00963, 0.00000, 0.00000, 0.00000);
- CreateObject(2164, 1957.84521, -1249.26672, 19.00945, 0.00000, 0.00000, 0.00000);
- CreateObject(1671, 1959.14246, -1247.47949, 19.31270, 0.00000, 0.00000, 160.56171);
- CreateObject(2008, 1958.56616, -1246.74573, 19.00997, 0.00000, 0.00000, 0.00000);
- specialcar = CreateVehicle(572, 1946.6841, -1249.0542, 19.1499, 0.0000, -1, -1, 100);
- specialcar = CreateVehicle(572, 1953.5132, -1248.9252, 19.1499, 0.0000, -1, -1, 100);
- specialcar = CreateVehicle(572, 1951.4293, -1248.9253, 19.1499, 0.0000, -1, -1, 100);
- specialcar = CreateVehicle(572, 1949.1097, -1248.8417, 19.1499, 0.0000, -1, -1, 100);
- return 1;
- }
- COMMAND:start(playerid, cmdtext)
- {
- if(IsPlayerInVehicle(playerid, specialcar))
- {
- Ccp[playerid] = 1;
- SetPlayerCheckpoint(playerid, 1996.2595,-1234.9159,20.6417, 3.0);
- SendClientMessage(playerid, 0xFFFFFFFF, "You started a mission. Please follow the checkpoints.");
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "You must be in special car.");
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(Ccp[playerid] == 1)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 2;
- SetPlayerCheckpoint(playerid, 2039.1515,-1245.3955,23.3346, 3.0);
- GameTextForPlayer(playerid, "1/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 2)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 3;
- SetPlayerCheckpoint(playerid, 2051.4465,-1200.9730,23.5868, 3.0);
- GameTextForPlayer(playerid, "2/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 3)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 4;
- SetPlayerCheckpoint(playerid, 2052.9321,-1155.9016,23.5725, 3.0);
- GameTextForPlayer(playerid, "3/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 4)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 5;
- SetPlayerCheckpoint(playerid, 2003.2378,-1148.3591,24.2759, 3.0);
- GameTextForPlayer(playerid, "4/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 5)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 6;
- SetPlayerCheckpoint(playerid, 1973.5219,-1157.1123,20.9533, 3.0);
- GameTextForPlayer(playerid, "5/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 6)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 7;
- SetPlayerCheckpoint(playerid, 1909.2423,-1147.4587,24.3805, 3.0);
- GameTextForPlayer(playerid, "6/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 7)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 8;
- SetPlayerCheckpoint(playerid, 1876.3091,-1188.9344,22.7149, 3.0);
- GameTextForPlayer(playerid, "7/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 8)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 9;
- SetPlayerCheckpoint(playerid, 1867.5544,-1242.3293,14.3237, 3.0);
- GameTextForPlayer(playerid, "8/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 9)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 10;
- SetPlayerCheckpoint(playerid, 1917.8446,-1215.5663,19.4709, 3.0);
- GameTextForPlayer(playerid, "9/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 10)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 11;
- SetPlayerCheckpoint(playerid, 2010.8773,-1214.3700,20.2992, 3.0);
- GameTextForPlayer(playerid, "10/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 11)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 12;
- SetPlayerCheckpoint(playerid, 2026.5521,-1193.5040,21.4536, 3.0);
- GameTextForPlayer(playerid, "11/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 12)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 13;
- SetPlayerCheckpoint(playerid, 2003.3975,-1174.7896,20.4751, 3.0);
- GameTextForPlayer(playerid, "12/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 13)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 14;
- SetPlayerCheckpoint(playerid, 1974.7795,-1177.5264,20.0234, 3.0);
- GameTextForPlayer(playerid, "13/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 14)
- {
- DisablePlayerCheckpoint(playerid);
- Ccp[playerid] = 15;
- SetPlayerCheckpoint(playerid, 1911.6196,-1178.9412,22.8399, 3.0);
- GameTextForPlayer(playerid, "14/15", 1000, 5);
- return 1;
- }
- if(Ccp[playerid] == 15)
- {
- DisablePlayerCheckpoint(playerid);
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Congratulations", "Reward: 100$\nBonus: 40$", "OK", "");
- GivePlayerMoney(playerid, 140);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement