Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////AKS DOSTAVLJANJE/////////////////////////////////////
- if(Dostavljanje[playerid] == 1 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 840.5473,-1482.7014,13.4710))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,882.6514,-1795.6277,13.6163, 3.0);
- Dostavljanje[playerid] = 2;
- }
- }
- if(Dostavljanje[playerid] == 2 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 882.6514,-1795.6277,13.6163))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,315.4244,-1774.5035,4.5998, 3.0);
- Dostavljanje[playerid] = 3;
- }
- }
- if(Dostavljanje[playerid] == 3 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 315.4244,-1774.5035,4.5998))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,1371.1663,-1843.3867,13.4536, 3.0);
- Dostavljanje[playerid] = 4;
- }
- }
- if(Dostavljanje[playerid] == 4 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1371.1663,-1843.3867,13.4536))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,1894.2920,-1131.2144,24.1194, 3.0);
- Dostavljanje[playerid] = 5;
- }
- }
- if(Dostavljanje[playerid] == 5 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1894.2920,-1131.2144,24.1194))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,1409.2632,-932.3252,35.3451, 3.0);
- Dostavljanje[playerid] = 6;
- }
- }
- if(Dostavljanje[playerid] == 6 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1409.2632,-932.3252,35.3451))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,1497.7458,-693.9975,94.6250, 3.0);
- Dostavljanje[playerid] = 7;
- }
- }
- if(Dostavljanje[playerid] == 7 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1497.7458,-693.9975,94.6250))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,852.2112,-743.2109,94.8438, 3.0);
- Dostavljanje[playerid] = 8;
- }
- }
- if(Dostavljanje[playerid] == 8 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 852.2112,-743.2109,94.8438))
- {
- GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
- SetPlayerCheckpoint(playerid,-72.5933,-1578.7609,2.4921, 3.0);
- Dostavljanje[playerid] = 9;
- }
- }
- if(Dostavljanje[playerid] == 9 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -72.5933,-1578.7609,2.4921))
- {
- GameTextForPlayer(playerid, "~y~Jos jedna dostava~n~je ostala", 3000, 3);
- SetPlayerCheckpoint(playerid,792.9355,-1762.4487,13.2994, 3.0);
- Dostavljanje[playerid] = 10;
- }
- }
- if(Dostavljanje[playerid] == 10 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 792.9355,-1762.4487,13.2994))
- {
- new bonus = random(265), string[120];
- g_NovacPlus(playerid, 1400+bonus);
- format(string,sizeof(string),""BELA"Zavrsili ste dostavu!\n\n"BELA"Plata: "SPLAVA"500$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
- ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj Dostave",string,"Ok","");
- Dostavljanje[playerid] = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(100, 200);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment