Jump to content

kevincouto6

Members
  • Posts

    235
  • Joined

  • Last visited

Everything posted by kevincouto6

  1. I created the object but how very large I need a collision with the scale 20 can anyone help me?
  2. -- ------------------------------------------------------------------------------------------------------------------------------ local uMainGate = createObject ( 980, 1213.7659912109, -2042.3292236328, 66.699996948242, 0, 0.24169921875, 89.741821289063 ) local uColShape = createColCircle ( 1213.7659912109, -2042.3292236328, 10, 10 ) setElementDoubleSided(uMainGate, true); -- ------------------------------------------------------------------------------------------------------------------------------ local function open (element) if getElementType(element) ~= 'player' then return end moveObject ( uMainGate, 1500 , 1213.7340087891, -2049.1142578125, 66.699996948242 ) end end local function close (element) if getElementType(element) ~= 'player' then return end moveObject ( uMainGate, 2000, 1213.7659912109, -2042.3292236328, 66.699996948242 ) end end -- ------------------------------------------------------------------------------------------------------------------------------ addEventHandler ( "onColShapeHit", uColShape, open) addEventHandler ( "onColShapeLeave", uColShape, close) -- ------------------------------------------------------------------------------------------------------------------------------
  3. I wanted to do a teleport with the / pvp command, with several spawn points, but I can not. function tele (thePlayer) local spawns = { } spawns1 ( thePlayer, 2181,-2495, 14 ) spawns2 ( thePlayer, 2181,-2495, 14 ) spawns3 ( thePlayer, 2181,-2495, 14 ) spawns4 ( thePlayer, 2181,-2495, 14 ) spawns5 ( thePlayer, 2181,-2495, 14 ) end addCommandHandler ( "pvp", tele )
  4. hello wanted help with guards to protect my base and my faction, Against invaders
  5. THXX , LOVEEE YOU BROOOOOOS
  6. these Scripts are for a map I'm creating
  7. The Peds are not giving respawn after dead !!You could leave the script ready for me.
  8. Hello, this corrected many errors, but the PEDs are multiplying after they die and I do not know what to do
  9. Good my problem and that when the PEDs will respawn they are duplicating, Please could you correct the errors, and sorry for the inconvenience
  10. I'm having a problem with this script, could anyone help me, please? ped1 = createPed ( 287, 1877.8000488281, -2291.6000976563, 13.60000038147 ) ped2 = createPed ( 287, 1878.3000488281, -2288.5, 13.60000038147 ) ped3 = createPed ( 287, 1878.4000244141, -2294.6999511719, 13.60000038147 ) ped4 = createPed ( 61, 1883.359375, -2291.3227539063, 13.60781288147 ) setTimer ( setPedAnimation, 1000, 1, ped1, "SHOP", "SHP_serve_loop",-1, false, false, false, true) setTimer ( setPedAnimation, 1000, 1, ped2, "SHOP", "SHP_serve_loop",-1, false, false, false, true) setTimer ( setPedAnimation, 1000, 1, ped3, "SHOP", "SHP_serve_loop",-1, false, false, false, true) setTimer ( setPedAnimation, 1000, 1, ped4, "COP_AMBIENT", "coplook_loop",-1, false, false, false, true) setPedRotation ( ped1, 87.9990844 ) setPedRotation ( ped2, 58.0004577 ) setPedRotation ( ped3, 111.999084 ) setPedRotation ( ped4, 273.253387 ) setElementFrozen(ped1, true) setElementFrozen(ped2, true) setElementFrozen(ped3, true) setElementFrozen(ped4, true) function peddestroy1 ( thePlayer ) if ( isPedDead ( ped1 ) ) then setTimer ( destroyElement, 7100, 1, ped1 ) end end addEventHandler("onPedWasted", getRootElement(ped1), peddestroy1 ) function peddestroy2 ( thePlayer ) if ( isPedDead ( ped2 ) ) then setTimer ( destroyElement, 7300, 1, ped2 ) end end addEventHandler("onPedWasted", getRootElement(ped2), peddestroy2 ) function peddestroy3 ( thePlayer ) if ( isPedDead ( ped3 ) ) then setTimer ( destroyElement, 7500, 1, ped3 ) end end addEventHandler("onPedWasted", getRootElement(ped3), peddestroy3 ) function peddestroy4 ( thePlayer ) if ( isPedDead ( ped4 ) ) then setTimer ( destroyElement, 7700, 1, ped4 ) end end addEventHandler("onPedWasted", getRootElement(ped4), peddestroy4 ) function pedrespawnafterdeath1() ped1 = createPed ( 287, 1877.8000488281, -2291.6000976563, 13.60000038147 ) pedanim = setTimer ( setPedAnimation, 1000, 1, ped1, "SHOP", "SHP_serve_loop", -1, false, false, false, true) setPedRotation ( ped1, 87.9990844 ) setElementFrozen(ped1, true) end function pedrespawnafterdeath2 () ped2 = createPed ( 287, 1878.3000488281, -2288.5, 13.60000038147 ) pedanim = setTimer ( setPedAnimation, 1000, 1, ped2, "SHOP", "SHP_serve_loop", -1, false, false, false, true) setPedRotation ( ped2, 58.0004577 ) setElementFrozen(ped2, true) end function pedrespawnafterdeath3() ped3 = createPed ( 287, 1878.4000244141, -2294.6999511719, 13.60000038147 ) pedanim = setTimer ( setPedAnimation, 1000, 1, ped3, "SHOP", "SHP_serve_loop", -1, false, false, false, true) setPedRotation ( ped3, 111.999084 ) setElementFrozen(ped3, true) end function pedrespawnafterdeath4() ped4 = createPed ( 61, 1883.359375, -2291.3227539063, 13.60781288147 ) pedanim = setTimer ( setPedAnimation, 1000, 1, ped4, "COP_AMBIENT", "coplook_loop", -1, false, false, false, true) setPedRotation ( ped4, 273.253387 ) setElementFrozen(ped4, true) end function pednewadeath1 ( thePlayer ) if ( isPedDead ( ped1 ) ) then setTimer ( pedrespawnafterdeath1, 10000, 1 ) end end addEventHandler("onPedWasted", ped1, getRootElement(), pednewadeath1 ) function pednewadeath2 ( thePlayer ) if ( isPedDead ( ped2 ) ) then setTimer ( pedrespawnafterdeath2, 10000, 1 ) end end addEventHandler("onPedWasted", ped2, getRootElement(), pednewadeath2 ) function pednewadeath3 ( thePlayer ) if ( isPedDead ( ped3 ) ) then setTimer ( pedrespawnafterdeath3, 10000, 1 ) end end addEventHandler("onPedWasted", ped3, getRootElement(), pednewadeath3 ) function pednewadeath4 ( thePlayer ) if ( isPedDead ( ped4 ) ) then setTimer ( pedrespawnafterdeath4, 10000, 1 ) end end addEventHandler("onPedWasted", ped4, getRootElement(), pednewadeath4 )
×
×
  • Create New...