Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(TuraLV[playerid] == 4 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, -1558.4552,-2742.9285,48.5416))
- {
- if(IsTrailerAttachedToVehicle(CID))
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
- utovar[playerid] = SetTimerEx("preposta", 5000, false, "d", playerid);
- SetPlayerCheckpoint(playerid, 1036.9463,-1912.9376,13.1056, 4.0);
- TuraLV[playerid] = 5;
- }
- }
- }
- if(TuraLV[playerid] == 5 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 1036.9463,-1912.9376,13.1056))
- {
- if(IsTrailerAttachedToVehicle(CID))
- {
- new bonus = random(400), string[120];
- g_NovacPlus(playerid, 23000+bonus);
- format(string,sizeof(string),""SPLAVA"Uspesno ste zavrsili prevoz robe!\n\n"BELA"Plata: "SPLAVA"23000$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
- ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj prevoza robe",string,"Ok","");
- TuraLV[playerid] = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(103, 1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement