Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(PlayerInfo[playerid][pVozacka] == 0)
- {
- SendClientMessage(playerid, -1, "** Ti nemas vozacku dozvolu, pazi se policije! **");
- }
- if(vehicleid == vozilazapolaganje[1])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- if(vehicleid == vozilazapolaganje[2])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- if(vehicleid == vozilazapolaganje[3])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- if(vehicleid == vozilazapolaganje[4])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- if(vehicleid == vozilazapolaganje[5])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- if(vehicleid == vozilazapolaganje[6])
- {
- if(PlayerInfo[playerid][pPolaganje] == 1)
- {
- ccp[playerid] = 1;
- SendClientMessage(playerid, -1, ""COLOR_WHITE"[AS]"COLOR_RED" Krenuli ste sa polaganjem pratite markere. Pazite da neostetite vozilo!");
- checkpoint[1] = SetPlayerCheckpoint(playerid, 2083.2600,-1910.3564,13.3828, 5);
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(ccp[playerid] == 1)
- {
- ccp[playerid] = 2;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2084.4517,-1815.8667,13.3828, 5);
- }
- if(ccp[playerid] == 2)
- {
- ccp[playerid] = 3;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2084.4517,-1815.8667,13.3828, 5);
- }
- if(ccp[playerid] == 3)
- {
- ccp[playerid] = 4;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2107.7744,-1713.3893,13.3892, 5);
- }
- if(ccp[playerid] == 4)
- {
- ccp[playerid] = 5;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2114.9268,-1611.1447,23.9743, 5);
- }
- if(ccp[playerid] == 5)
- {
- ccp[playerid] = 6;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2115.7139,-1482.5104,23.8069, 5);
- }
- if(ccp[playerid] == 6)
- {
- ccp[playerid] = 7;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2055.8904,-1457.4177,20.1353, 5);
- }
- if(ccp[playerid] == 7)
- {
- ccp[playerid] = 8;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 1940.8206,-1459.9934,13.3828, 5);
- }
- if(ccp[playerid] == 8)
- {
- ccp[playerid] = 9;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 1846.2623,-1495.7784,13.3612, 5);
- }
- if(ccp[playerid] == 9)
- {
- ccp[playerid] = 10;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 1819.0737,-1606.5913,13.3778, 5);
- }
- if(ccp[playerid] == 10)
- {
- ccp[playerid] = 11;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 1820.1173,-1727.2739,13.3828, 5);
- }
- if(ccp[playerid] == 11)
- {
- ccp[playerid] = 12;
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid, 2074.3882,-1910.6429,13.5469, 5);
- SendClientMessage(playerid, -1, ""COLOR_RED"[AS]"COLOR_WHITE" Sada otidjite do zadnjeg markera i sacekajte rezultate testa.");
- }
- if(ccp[playerid] == 13)
- {
- DisablePlayerCheckpoint(playerid);
- new Float:health;
- new veh = GetPlayerVehicleID(playerid);
- GetVehicleHealth(veh, health);
- if(health < 700)
- {
- SendClientMessage(playerid, -1, ""COLOR_RED"[AS]"COLOR_WHITE" Niste polozili vozacki ispit jer vam je vozilo osteceno, pokusajte ponovo kasnije.");
- return 1;
- }
- else
- {
- new sarma = GetPlayerVehicleID(playerid);
- SetVehicleToRespawn(sarma);
- PlayerInfo[playerid][pVozacka] = 1;
- SendClientMessage(playerid, -1, ""COLOR_RED"[AS]"COLOR_WHITE" Polozili ste vozacki ispit, cestitamo! Vozite oprezno.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement