Advertisement
Guest User

cucc

a guest
Aug 28th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.85 KB | None | 0 0
  1. public kamijontimer(playerid) // mikor elkezded tankolni a trailert a timeres cucc, majd a következő CP bedobása asszem
  2. {
  3.     if(kamijonmunka[playerid] > 0)
  4.     {
  5.         new string[128];
  6.         format(string,50,"~w~TANKOLÁS...", kamijonmunka[playerid]);
  7.         GameTextForPlayer(playerid,string,1300,1);
  8.         kamijonmunka[playerid] = kamijonmunka[playerid] - 1;
  9.     }
  10.     else
  11.     {
  12.         if(KamionCP[playerid] == 1) //ShopCP
  13.         {
  14.             SetPlayerCheckpoint(playerid, -28.4407,-49.2976,1003.5469, 1.0);
  15.             TogglePlayerControllable(playerid,1);
  16.             KillTimer(KamijonTimer[playerid]);  //TimerShop
  17.             /*Kamionozik[playerid] = false;*/  //Producting
  18.             /*KamionCP[playerid] = 2; */ //ShopCP
  19.  
  20.  
  21.         }
  22.     }
  23.     return 1;
  24. }
  25.  
  26. //ez mikor /filltank-al elsőnek elkezded tankolni
  27. CMD:filltank(playerid, params[])
  28. {
  29.     new string[128];
  30.     new vehicleid = GetPlayerVehicleID(playerid);
  31.     if(PlayerInfo[playerid][pJob] != 4) return SCM(playerid, COLOR_LIGHTRED, "Nem vagy kamionos.");
  32.     if(Kamionozik[playerid] == false) return SCM(playerid, COLOR_LIGHTRED, "Nem dolgozol.");
  33.     if(!IsTrailerAttachedToVehicle(vehicleid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nincs trailer felcsatolva!");
  34.     if(Trailerbenzin[playerid] == true) return SCM(playerid, COLOR_LIGHTRED, "Már fel van töltve a trailered üzemanyaggal.");
  35.     /*if(Kamionozik[playerid] == false) return SCM(playerid, COLOR_LIGHTRED, "Nem dolgozol.");*/
  36.     if(KamionCP[playerid] == 1)
  37.     {
  38.         if(!IsPlayerInRangeOfPoint(playerid, 3.0, 261.9075,1411.2166,10.2274)) return SCM(playerid, COLOR_LIGHTRED, "Nem vagy az üzemanyagfeldolgozónál.");
  39.         TogglePlayerControllable(playerid, 0);
  40.         kamijonmunka[playerid] = 10; //change it with the timer time shopwork
  41.         KamijonTimer[playerid] = SetTimerEx("kamijontimer",1000,1,"i",playerid); //TimerShop timershop
  42.         Trailerbenzin[playerid] = true;
  43.     }
  44.     return 1;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement