Jump to content

LiOneLMeSsIShoT

Members
  • Posts

    609
  • Joined

  • Last visited

Everything posted by LiOneLMeSsIShoT

  1. There's a Gym-System in MTA like GTA San Andreas? and if there it can work with Another Characters? or only Cj character? I want to know if there's One...or Suggest to make one..and Thanks
  2. THank you a lot! But may you make it...like...if the player stat in health 100 then don't give him more health when he reach to this health...and the same with 200...300..400..500 to 1000 ...if you understand what i mean..then Please try to do it for me . And Thank you
  3. okay...what function to stop the anim?
  4. got Errors... hate to write too much so bad argument 'setPedAnimation setElemntHealth expected argument got 1 nil and anothe SPAM SPAM errors cant write them
  5. Saw in Meta client side!! :~...mistake. Gonna try the script again Thank you too man
  6. Working good .....but i want the player stop the anim and giving health when he click "Space" and when his health reach to 100..then stop giving health to him...and if his current health 200...then stop giving health to him when his health reach to 200...AND THANK YOU A LOT if you can and Thank you a lot
  7. Saw in Meta client side!! Shit...mistake. Gonna try the script again
  8. True..gonna test it now ERROR: script.lua:2: attempt to call global 'isPedDead' (a nil value) also i want the player stop the anim and giving health when he click "Space" and when his health reach to 100..then stop giving health to him...and if his current health 200...then stop giving health to him when his health reach to 200...AND THANK YOU A LOT
  9. ERRORS script.lua:2: Bad argument @ 'setPedAnimation' script.lua:4: bad argument @ 'getElementHealth' script.lua:4: attempt to compare boolean with number
  10. Debugscript ERROR: script.lua:9: unexpected symbol near ',' end, 10000, 0 ) also here..i dont understand why it's end, 1000, 0 ?
  11. I made this script to when the player write /relax...set ped animation and give him health +10 every 10 seconds...but i get ERRORS: Check it please..and tell me what the problem? function relax (theplayer, command) setPedAnimation (theplayer, "Lay_Bac_Loop") setTimer (health, 10000, 1) end addCommandHandler ("relax", relax) function health () setElementHealth ( localplayer, health +10) end Debugscript ERROR script.lua:11: attempt to perform arithmetic on global "health" (a function value) script.lua:3: Bad argument @ 'setPedAnimation"
  12. What do you mean?! Only need shows the Levels if the Point label 100..only
  13. I made a Client side in script shows the points of the weapon in label 2,and shows the Levels in Label 3 but the problem...The label 3 Don't shows any Level...when i reached for the Points....The script Client: function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ) end addEventHandler( "onClientRender", root, WeaponPoints ) addEventHandler( "onClientRender",root, function() local skills = guiGetText(GUIEditor.label[2]) if skills then local Point = tonumber(skills) if Point == Point: 100 then guiSetText (GUIEditor.label[3],"Level: 1") end end end ) And thanks for helping
  14. Wow! Worked Fine 10000% And i understanded what was the fucken mistake It's Shit! with the time
  15. When i write /gate... and open..the gate don't back to the position after the timer local gate1 = createObject ( 16773, 2506.5, -2110.5, 16.5, 0, 0, 0) local gate2 = createObject ( 16773, 2521.1000976563, -2110.5, 16.5, 0, 0, 0) function MoveObject (thePlayer) local team = getPlayerTeam(thePlayer) local x, y, z = getElementPosition(thePlayer) local distance = getDistanceBetweenPoints3D(2513.6999511719, -2110.6000976563, 13.5, x, y, z) if (distance <= 10) then if (team==getTeamFromName("ZombieTeam")) then moveObject (gate1, 5000, 2494.5, -2110.3000488281, 16.5) moveObject (gate2, 5000, 2532.6000976563, -2110.1000976563, 16.5) setTimer (moveBack, 6500, 1) outputChatBox ("Welcome", thePlayer, 0, 255, 0) end end end addCommandHandler ("gate", MoveObject) function moveBack () moveObject (gate1, 2506.5, -2110.5, 16.5) moveObject (gate2, 2521.1000976563, -2110.5, 16.5) end ERRORS!: FactoryGate.lua:22: Bad argument @ 'moveObject' [expected number at argument 5, got none] FactoryGate.lua:23: Bad argument @ 'moveObject' [expected number at argument 5, got none]
  16. I can't just post my Full script in the forum for public...i hope you understand me......and the line error is: attempt to compare number with nil that's what i got from the debug script!...and THANKS For helping
  17. Man i want to make it more good..like he can add HP everywere...by Command...if you can't help me with it..there's no problemo man
  18. script: function setHealth (theplayer) local Ganim = getPedAnimation (theplayer) local health = getElementHealth(theplayer) local daAnim = getElementData(theplayer, "animz") local daBlockz = getElementData(theplayer, "blockz") if daBlockz == "Laying" and daAnimz == "Lay_Bac_Loop" then setPedAnimation(theplayer,false) else setPedAnimation (theplayer, "LAYING", "Lay_Bac_Loop") end if Ganim then setElementHealth ( player, health +5) end end setTimer(setHealth, 4000, 1) addCommandHandler ("relax", setHealth) ERROR: attempt to call global 'getPedAnimation' ( a nil value)
×
×
  • Create New...