Advertisement
MichaelFR

Untitled

Jan 23rd, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.14 KB | None | 0 0
  1.     if(TuraLV[playerid] == 4 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
  2.     {
  3.         if(IsPlayerInRangeOfPoint(playerid, 4.0, -1558.4552,-2742.9285,48.5416))
  4.         {
  5.             if(IsTrailerAttachedToVehicle(CID))
  6.             {
  7.                 TogglePlayerControllable(playerid, 0);
  8.                 GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
  9.                 utovar[playerid] = SetTimerEx("preposta", 5000, false, "d", playerid);
  10.                 SetPlayerCheckpoint(playerid, 1036.9463,-1912.9376,13.1056, 4.0);
  11.                 TuraLV[playerid] = 5;
  12.             }
  13.         }
  14.     }
  15.     if(TuraLV[playerid] == 5 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
  16.     {
  17.         if(IsPlayerInRangeOfPoint(playerid, 4.0, 1036.9463,-1912.9376,13.1056))
  18.         {
  19.             if(IsTrailerAttachedToVehicle(CID))
  20.             {
  21.                 new bonus = random(400), string[120];
  22.                 g_NovacPlus(playerid, 23000+bonus);
  23.                 format(string,sizeof(string),""SPLAVA"Uspesno ste zavrsili prevoz robe!\n\n"BELA"Plata: "SPLAVA"23000$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
  24.                 ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj prevoza robe",string,"Ok","");
  25.                 TuraLV[playerid] = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(103, 1000);
  26.             }
  27.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement