News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Anyone can fix this code  (Read 1461 times)

0 Members and 1 Guest are viewing this topic.

Offline The CeSSaRR

  • Don't messing me!
  • Jr. Member
  • **
  • Posts: 59
  • Gender: Male
  • You're messing with the wrong mascot!
    • View Profile
Anyone can fix this code
« on: December 22, 2013, 11:18:27 AM »
İ make this code this is work it but only work preppy place (harrington house,boxing place) and jimmy never stop always fight...İ can't control

ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
 
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
 
  PlayerSetHealth(200) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
 
  LoadAnimationGroup("P_Striker_B")
 
  PedSetActionTree(gPlayer, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act")
  PedSetAITree(gPlayer, "/Global/AI_Parker", "Act/AI/AI_Chad_3_04.cat")
 
 
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

Offline luizd90

  • Jr. Member
  • **
  • Posts: 3
  • Gender: Male
    • View Profile
    • http://www.xfire.com/profile/luizd90
Re: Anyone can fix this code
« Reply #1 on: December 22, 2013, 03:22:55 PM »
Code: [Select]
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
 
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
 
  PlayerSetHealth(200) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
 
  LoadAnimationGroup("P_Striker_B")
 
  PedSetActionTree(gPlayer, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act")
 
 
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end