Jump to content

MYSOTO

Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by MYSOTO

  1. If I use triggerclientvent you think it will look server side
  2. Sorry I already put it in the correct language
  3. Hi believe this rs what happens is that the effects are only seen on the side of the user osea client and the others can not see it I would like to help me to turn it server side x, y, z = getElementPosition(player) fx2 = createEffect("flame", x, y, z-1000) fx3 = createEffect("flame", x, y, z-1000) fx4 = createEffect("flame", x, y, z-1000) function fire() setEffectDensity(fx2, 2) setEffectSpeed(fx2, 1) setObjectScale ( fx2, 0.5) attachElements (fx,localPlayer, 0, 0, 5 ) setWeaponProperty(8, "damage", 100) end addCommandHandler("fire", fire) function disableMinigunOnSwitch ( player, prevSlot, newSlot ) if getPedWeapon(player(),newSlot) == 8 then --if the switched weapon is the minigun exports.bone_attach:attachElementToBone(fx2,player,12,0,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx3,player,12,-1,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx4,player,12,-0.5,0,0.1,0,0,0) else --if it isnt the minigun exports.bone_attach:detachElementFromBone(fx) exports.bone_attach:detachElementFromBone(fx2) exports.bone_attach:detachElementFromBone(fx3) exports.bone_attach:detachElementFromBone(fx4) setElementPosition ( fx2, x, y, z-1000 ) setElementPosition ( fx3, x, y, z-1000 ) setElementPosition ( fx4, x, y, z-1000 ) end end addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), disableMinigunOnSwitch ) function stopMinigunDamage ( attacker, weapon, bodypart ) if ( weapon == 8 ) then --if the weapon used was the minigun createFire(x, y, z, 2) --cancel the event end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )
  4. hola quiero que cuando entres a una zona no puedas abrir el freeroam y cuando salgas de esa zona lo puedas volver a usar me pueden dar un ejemplo use un col sphere plis necesito ayuda
  5. hola tengo una duda estoy haciendo un rs de super armas y me gustaria crear una pala que al golpear con ella queme al otro jugador me podrian ayudar plis
  6. me funciono el codigo pero una duda como podria unirlo con esto local x, y, z = getElementPosition(localPlayer) local fx2 = createEffect("flame", x, y, z) local fx3 = createEffect("flame", x, y, z) local fx4 = createEffect("flame", x, y, z) setEffectDensity(fx2, 2) setEffectSpeed(fx2, 1) setObjectScale ( fx2, 0.5) attachElements (fx,localPlayer, 0, 0, 5 ) exports.bone_attach:attachElementToBone(fx2,localPlayer,12,0,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx3,localPlayer,12,-1,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx4,localPlayer,12,-0.5,0,0.1,0,0,0)
  7. MYSOTO

    MTA on Steam

    Well it would be well the union seeing it from that point I join the opinion
  8. es la espada y lo que yo quiero hacer es que si selecciono la espada solo me funcione el objecto en ella y si cambio de arma que se quite
  9. MYSOTO

    MTA on Steam

    Good first I want to give you a good greeting the subject of mta sa in steam is actually very good but first to clarify some points of rockstar . 1- he knows that mta sa exists (only that I can not cancel because gta sa is old And helps shopping for gta sa in steam) . 2- nobody from mta told rockstars about mta in steam since that can bring advantages or problems to mta sa could cause them to cancel the mod and that would be bad for the Mta sa community of gamers. 3-Up mta sa to the plataforma of steam could cause the number of players to multiply asta the 10 times more. 4-Rock star has all rights of gta sa but could be considered mta as a Fanmade as long as they do not charge for it can use whatever they want or I think 5 .- I would recommend taking care as soon as rockstar time has the bad reputation of eliminating mods Well that would be all my opinion the truth I recommend to make an effort to contact rockstar and try to fix this matter so they would win the 4 mta, steam, rockstar and most importantly the community of players. sorry my english is bad xdddd
  10. Bueno ise una arma que se le crea un objecto osea ala katana, lo que yo quiero hacer es que si no es la katana que no aparesca la funcion osea que si se agarra la katana si aparesca y si es otra arma por ejemplo una m4 el objecto no aparezca. function fire() local x, y, z = getElementPosition(localPlayer) fx4 = createObject ( 1337, 5540.6654, 1020.55122, 1240.545, 90, 0, 0 ) exports.bone_attach:attachElementToBone(fx4,localPlayer,12,-0.5,0,0.1,0,0,0) end addCommandHandler("fire", fire)
  11. puedes dar un ejemplo? porfa ok gracias
  12. Disculpa como podria unirlo con este rs para que funcione bien osea que digamos tu ped me siga como en el rs de abajo function myPed( thePlayer ) local x, y, z = getElementPosition( thePlayer ); y = y - 5 ped = createPed( 139, x, y, z ) setElementData(ped,"PedExtraHealth",2000) setTimer (destroyElement, 500000, 1, ped) if ped then follow( ped, thePlayer ) end end addCommandHandler( "loli", myPed ) function follow(element, player) if (not isElement(element) or not isElement(player)) then return end if (isPedInVehicle(element)) then return end local cX, cY = getElementPosition(player) local pX, pY = getElementPosition(element) local copangle = (360 - math.deg(math.atan2((cX - pX), (cY - pY)))) % 360 setPedRotation(element, copangle) setElementInterior(element, getElementInterior(player)) setElementDimension(element, getElementDimension(player)) local dist = getDistanceBetweenPoints2D(cX, cY, pX, pY) if (dist > 16) then -- Warp local x, y, z = getElementPosition(player) setElementPosition(element, x, y, z) setTimer(follow, 200, 1, element, player) elseif (dist > 6) then -- Sprint setPedAnimation( element, "PED", "sprint_civi" ) setTimer(follow, 200, 1, element, player) elseif (dist > 4) then -- Jog setPedAnimation( element, "PED", "JOG_maleA" ) setTimer(follow, 200, 1, element, player) elseif (dist > 1.5) then -- Walk setPedAnimation( element, "PED", "WALK_civi" ) setTimer(follow, 200, 1, element, player) elseif (dist <= 2) then -- Stop setPedAnimation( element, "PED", "IDLE_stance" ) setTimer(follow, 200, 1, element, player) end end
  13. Hola a todos bueno estoy creando un sistema de ped pero quiero que solo se pueda crear uno por player ya que abusan del script y ponen muchos y dan lag aqui les dejo una parte del script: function loli2( thePlayer ) local x, y, z = getElementPosition( thePlayer ); y = y - 5 ped = createPed( 139, x, y, z ) setElementData(ped,"PedExtraHealth",2000) setTimer (destroyElement, 500000, 1, ped) if ped then follow( ped, thePlayer ) end end addCommandHandler( "loli", loli2 )
  14. MYSOTO

    mp5 area

    Hello I would like to make an area of mp5 that can only be used in a certain area and once you leave you remove the weapon, some could give me an example please
×
×
  • Create New...