SHARE
TWEET

Untitled

a guest Dec 5th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function EnterFunction(playerid) {
  2.     new i = PickupInfo[PlayerPickup[playerid]][pkID];
  3.  
  4.     switch(PickupInfo[PlayerPickup[playerid]][pkType]) {
  5.         case 1: {
  6.             if(!PlayerToPoint(2, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
  7.                 return true;
  8.  
  9.             if(GetPlayerVirtualWorld(playerid) != 0)
  10.                 return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti intra intr-o casa, pentru ca esti in alt virtual world.");
  11.  
  12.             if(HouseInfo[i][hLock] != 0)
  13.                 return GameTextForPlayer(playerid, "~r~~h~Inchis", 1000, 1);
  14.            
  15.             SetPlayerFreeze(playerid, 3);
  16.             SetPlayerPosEx(true, playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
  17.             SetPlayerInterior(playerid,HouseInfo[i][hInterior]);
  18.             PlayerInfo[playerid][pInt] = HouseInfo[i][hInterior];
  19.             PlayerInfo[playerid][pLocal] = i;
  20.             SetPlayerVirtualWorld(playerid,HouseInfo[i][hVirtual]);
  21.             InHouse[playerid] = i;
  22.             DeelayCommand[playerid][13] = 5;
  23.             HouseRadio(playerid, i);
  24.         }
  25.         case 2: {
  26.             if(!PlayerToPoint(2, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || BizzInfo[i][bStatic] != 0)
  27.                 return true;
  28.            
  29.             if(PlayerMoney(playerid, BizzInfo[i][bFee]))
  30.                 return GameTextForPlayer(playerid, "~r~~h~Nu ai destui bani", 1000, 1);
  31.            
  32.             if(BizzInfo[i][bLocked] == 1)
  33.                 return GameTextForPlayer(playerid, "~r~~h~Inchis", 1000, 1);
  34.            
  35.             if(BizzInfo[i][bType] == 1) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /withdraw, /transfer, /deposit");
  36.             if(BizzInfo[i][bType] == 9) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /dice.");
  37.             if(BizzInfo[i][bType] == 8) {
  38.                 if(KG[playerid] != 0) {
  39.                     GiveJobSalary(playerid);
  40.                     DisablePlayerCheckpointEx(playerid);
  41.                     CP[playerid] = 0;
  42.                     GunoiKG[playerid] = 0;
  43.                     KG[playerid] = 0;
  44.                     PlayerInfo[playerid][pFarmerSkill] ++;
  45.                     Update(playerid, pFarmerSkillx);               
  46.                     for(new m; m < 2; m++) {
  47.                         if(PlayerInfo[playerid][pDailyMission][m] == 4) CheckMission(playerid, m);
  48.                     }              
  49.                     DestroyVehicle(JobVehicle[playerid]);
  50.                     JobVehicle[playerid] = 0, JobWorking[playerid] = 0;
  51.                     PlayerTextDrawHide(playerid, JobTD);
  52.                 }  
  53.             }          
  54.             if(BizzInfo[i][bType] == 3) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /drink.");
  55.             if(BizzInfo[i][bType] == 5) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /buydildo,");
  56.             if(BizzInfo[i][bType] == 6 || BizzInfo[i][bType] == 20) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /buy.");
  57.             if(BizzInfo[i][bType] == 7) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /clothes, /glasses, /buyhat, /accs.");
  58.             GivePlayerCash(playerid, 0,BizzInfo[i][bFee]);
  59.             BizzInfo[i][bBalance] += BizzInfo[i][bFee];
  60.             BizzRadio(playerid, i);                            
  61.             SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
  62.             PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
  63.             SetPlayerFreeze(playerid, 3);
  64.             SetPlayerPosEx(true, playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
  65.             PlayerInfo[playerid][pLocal] = i+99;
  66.             SetPlayerVirtualWorld(playerid,BizzInfo[i][bVirtual]);
  67.             InBussines[playerid] = i;
  68.             gQuery[0] = EOS;
  69.             mysql_format(SQL, gQuery, sizeof(gQuery),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[i][bBalance], BizzInfo[i][bID]);
  70.             mysql_tquery(SQL, gQuery, "", "");
  71.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top