SHARE
TWEET

Untitled

a guest Nov 14th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     case 'not_has_pumpkin':
  2.       let keys = Object.keys(configure.street_foods)
  3.       let rand = randomInteger(0, keys.length - 1)
  4.       let pumpkin = keys[rand]
  5.       if (!configure.farm_pumpkins[farm_sow_task]) {
  6.         setTimeout((player, playerid, verifname) => {
  7.           if (struct.person_data[playerid].g_online && verifname) {
  8.             if (verifname == player.name) {
  9.               rand = randomInteger(0, keys.length - 1)
  10.               pumpkin = keys[rand]
  11.               if (!configure.farm_pumpkins[farm_sow_task]) {
  12.                 setTimeout((player, playerid, verifname) => {
  13.                   if (struct.person_data[playerid].g_online && verifname) {
  14.                     if (verifname == player.name) {
  15.                       rand = randomInteger(0, keys.length - 1)
  16.                       pumpkin = keys[rand]
  17.                       farm_sow_task = randomInteger(0, keys.length - 1)
  18.                       let pos = configure.farm_pumpkins[farm_sow_task].position
  19.                       x = pos.x
  20.                       y = pos.y
  21.                       mp.flgm.createNewWayPoint(player, x, y)
  22.                       mp.flgm.createSingleJobBlip(player, 1, pos,
  23.                         "Собрать тыкву", 1, 25, 255, 10000, true, 0.0, 0)
  24.                       mp.flgm.createSingleJobMarker(player, 1, pos,
  25.                         1.5, [0, 143, 0, 150], 0)
  26.                      
  27.                       farm_sow_state = 'collecting'
  28.                       player.setVariable('farm_sow_state', farm_sow_state)
  29.                       player.setVariable('farm_sow_task', farm_sow_task)
  30.                     }
  31.                   }
  32.                 }, 500, player, player.id, player.name)
  33.               } else {
  34.                 farm_sow_task = randomInteger(0, keys.length - 1)
  35.                 let pos = configure.farm_pumpkins[farm_sow_task].position
  36.                 x = pos.x
  37.                 y = pos.y
  38.                 mp.flgm.createNewWayPoint(player, x, y)
  39.                 mp.flgm.createSingleJobBlip(player, 1, pos,
  40.                   "Собрать тыкву", 1, 25, 255, 10000, true, 0.0, 0)
  41.                 mp.flgm.createSingleJobMarker(player, 1, pos,
  42.                   1.5, [0, 143, 0, 150], 0)
  43.                
  44.                 farm_sow_state = 'collecting'
  45.                 player.setVariable('farm_sow_state', farm_sow_state)
  46.                 player.setVariable('farm_sow_task', farm_sow_task)
  47.               }
  48.             }
  49.           }
  50.         }, 500, player, player.id, player.name)
  51.       } else {
  52.         farm_sow_task = pumpkin
  53.         let pos = configure.farm_pumpkins[farm_sow_task].position
  54.         x = pos.x
  55.         y = pos.y
  56.         mp.flgm.createNewWayPoint(player, x, y)
  57.         mp.flgm.createSingleJobBlip(player, 1, pos,
  58.           "Собрать тыкву", 1, 25, 255, 10000, true, 0.0, 0)
  59.         mp.flgm.createSingleJobMarker(player, 1, pos,
  60.           1.5, [0, 143, 0, 150], 0)
  61.        
  62.         farm_sow_state = 'collecting'
  63.         player.setVariable('farm_sow_state', farm_sow_state)
  64.         player.setVariable('farm_sow_task', farm_sow_task)
  65.       }
  66.       break
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
 
Top