-
Posts
1,004 -
Joined
-
Last visited
Everything posted by Narutimmy
-
Era un error en getElementModel esaba mal escrito jeje, pero me falta las armas
-
No funciona, los matas y no dan nada de dinero o exp y ademas no traen las armas
-
Asi? local colshape = createColRectangle ( -2960, -2960, 5920, 5920 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel zombiesMatados = 0 function zona (attacker, weapon, bodypart) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 10 ) then --Numero de Zombis por Matar if ( not isElement ( slothbot1 ) ) then local x, y, z = getElementPosition(attacker) slothbot1 = exports [ "slothbot" ]:spawnBot ( x+10, y, z+3, 90, math.random(33, 35), 0, 0, ex, 0, "hunting", true ) myBlip = createBlipAttachedTo ( slothbot1, 23 ) local id = getElementModel ( slothbot1 ) if id == 33 then exports.extra_health:setElementExtraHealth(slothbot1, 10000) giveWeapon( slothbot1, 38, 9999, true ) outputChatBox("[bOSS]:Boss medium spawned", getRootElement(), 155, 155, 155, false) elseif id == 34 then exports.extra_health:setElementExtraHealth(slothbot1, 50000) outputChatBox("[bOSS]:Boss high spawned", getRootElement(), 155, 155, 155, false) elseif id == 35 then exports.extra_health:setElementExtraHealth(slothbot1, 5000) giveWeapon( slothbot1, 8, 1, true ) outputChatBox("[bOSS]:Boss low spawned", getRootElement(), 155, 155, 155, false) end end end end end addEventHandler ( "onZombieWasted", getRootElement(), zona ) addEventHandler("onBotSpawn",getRootElement(),zona)
-
Al final quedo asi local colshape = createColRectangle ( -2960, -2960, 5920, 5920 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel zombiesMatados = 0 function zona (attacker, weapon, bodypart) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 10 ) then --Numero de Zombis por Matar if ( not isElement ( slothbot1 ) ) then local x, y, z = getElementPosition(attacker) slothbot1 = exports [ "slothbot" ]:spawnBot ( x+10, y, z, 90, math.random(33, 35), 0, 0, ex, 38, "hunting", true ) myBlip = createBlipAttachedTo ( slothbot1, 23 ) local id = getElementModel ( slothbot1 ) if id == 33 then exports.extra_health:setElementExtraHealth(slothbot1, 10000) outputChatBox("[bOSS]:Boss medium spawned", getRootElement(), 155, 155, 155, false) elseif id == 34 then exports.extra_health:setElementExtraHealth(slothbot1, 50000) outputChatBox("[bOSS]:Boss high spawned", getRootElement(), 155, 155, 155, false) elseif id == 35 then exports.extra_health:setElementExtraHealth(slothbot1, 5000) outputChatBox("[bOSS]:Boss low spawned", getRootElement(), 155, 155, 155, false) end end end end end addEventHandler ( "onZombieWasted", getRootElement(), zona ) addEventHandler("onBotSpawn",getRootElement(),zona) el problema es que quiero que tengan distintas armas y paguen diferente exp y dinero
-
Hola, lo que pasa es que ya e usado y editado varios diferentes, desde que cada cierto tiempo spawne en cordenadas aleatorias de una tabla. Tambien que al entrar a una Area al matar Cierta cantidad de zombis Spawne, pero lo que yo quiero es que spawnee en ciertos lugares pero en lugar de cierto tiempo pero cuando aya cierta concentracion de personas. Pense en crear varias coldshare creo se llaman que abarquen todo el mapa como estilo... un tablero de ajedres y que de igual manera al matar muchos zombis spawnee... pero es mas laborioso creo yo. Que me aconsejan?
-
*-* muchas gracias, ya habia probado de todo
-
no me tira error, solo no funciona
-
no me explico o no se si se puede, no quiero blokear un solo auto que el scrip cree, quiero blokear todos los autos de ese modelo
-
lo probe pero no anda
-
owner es la cuenta? asi? setVehicleDamageProof ( id, true ) setElementData(id , "Narutimmy", "Zastin") function onLockedVehicleEnter ( player, seat, jacked ) local id = getElementModel ( source ) if getElementData(source, "Narutimmy") and getElementData(source, "Narutimmy" ) ~= getAccountName(getPlayerAccount(player)) and ( seat == 0 ) and ( id == 434 ) then outputChatBox ("Propiedad De "..tostring(getElementData(source, "Narutimmy" )), player, 255, 50, 0) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), onLockedVehicleEnter )
-
Asi? function naru ( thePlayer, seat, jacked ) local elev = tonumber ( getElementData ( thePlayer, "level" ) ) or 0 local id = getElementModel ( source ) local account = getPlayerAccount(source) if ( seat == 0 ) and ( id == 434 ) and ( elev < 1 ) and (account == Narutimmy) then -- donde dice 40 cambialo por el level que quieras outputChatBox ( "[sERVER]: Auto de Narutimmy", thePlayer, 255, 100, 100, false ) cancelEvent ( ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), naru ) no entendi el getAccountName
-
Hola lo que pasa es que quiero que todos los autos por ejemplo el hydra solo puedan se usados por una cuenta... osea asi encuentren el auto tirado no lo puedan usar. Tenia este scrip que es para los Niveles pero quiero para cuenta. function bloqeo ( thePlayer, seat, jacked ) local elev = tonumber ( getElementData ( thePlayer, "level" ) ) or 0 local id = getElementModel ( source ) if ( seat == 0 ) and ( id == 432 or id == 425 or id == 520 ) and ( elev < 40 ) then -- donde dice 40 cambialo por el level que quieras outputChatBox ( "[sERVER]: Nesesitas ser Nivel 40 para usar este Veiculo", thePlayer, 255, 100, 100, false ) cancelEvent ( ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo )
-
como por skin?
-
Hola lo que pasa esque tengo este scrip, y los usuarios se quejan de que aonque el boss no este si saltan de un lugar mueren, alex me dijo que faltaba agregar una linea que compruebe si lo ataco o no pero nose como Otra cosa, yo tengo 2 Sloth Bot pero quiero que den diferente recompensa (Dinero, Exp) comoago eso? Sv --Tyrant local colshape2 = createColRectangle ( -1986.3155, 639.1424, 100, 100 ) zombiesMatados = 0 function zona2 ( ) if ( isElementWithinColShape ( source, colshape2 ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 300 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( tyrant ) ) then tyrant = exports [ "slothbot" ]:spawnBot ( -2000, 730, 46, 90, 146, 0, 0, ex, 0, "hunting", true ) exports.extra_health:setElementExtraHealth ( tyrant, 50000 ) setGameSpeed ( tyrant, 5) outputChatBox ( "#ff0000Tyrant a Spawneado, Corre!", getRootElement(), 255, 255, 255, true ) onZomieWasted = 75 myBlip2 = createBlipAttachedTo ( tyrant, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona2 ) function bot ( attacker ) if attacker == tyrant then --Creo que 'tyrant' es la variable de tu 'BOSS' killPed ( source, attacker ) end end addEventHandler("onPlayerDamage", getRootElement(), bot) ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 50000 ) destroyElement(myBlip2) givePlayerMoney ( theKiller, 1000000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end )
-
creo que poreso no funciono >.<
-
Algo asi? addCommandHandler("VIP", function(source) if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "VIP" ) ) ) then fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) else outputChatBox("Acceso denegado", source, 255, 0, 0, true) end end )
-
Hola lo que pasa es que recuerdan en panel de F1 que sale en lso Freeoom? bueno quiero saber como hacer para que solo se abra a los de un grupo en el ACL?
-
Si en ocaciones si saltas cercas del el mueres.
-
lo tengo en diferente scrip pero es casi el mismo
-
Hola lo que pasa es que yo tengo 1 BOSS que al morir da una recompensa, pero quiero meter otro BOSS pero que de otra recompensa yo uso ese: ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 20000 ) destroyElement(myBlip2) givePlayerMoney ( theKiller, 500000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end ) Pero solo Funciona con el primer jefe que es este: ---Nemesis local colshape = createColRectangle ( 88.4608, 1779.9825, 400, 400 ) zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 50 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 249.1348, 1820.0046, 9, 90, 33, 0, 0, ex, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 8000 ) outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "playTheSound", root ) onZomieWasted = 75 myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) ---RepawnBots function restartear ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = 0 end end addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted",getRootElement(), restartear ) ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 5000 ) destroyElement(myBlip) givePlayerMoney ( theKiller, 100000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end )
-
Ya mata de 1 solo Golpe, el problema es que en ocaciones los usuarios mueren sin razon, salde junto a el y mori.
-
Si es justo ese error.
-
error call local player algo asi sale en el debug
-
No Funciono, este es el scrip que uso para el BOSS --Tyrant local colshape = createColRectangle ( 88.4608, 1779.9825, 400, 400 ) zombiesMatados = 0 function zona2 ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 1 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( tyrant ) ) then tyrant = exports [ "slothbot" ]:spawnBot ( 249.1348, 1820.0046, 9, 90, 146, 0, 0, ex, 0, "hunting", true ) exports.extra_health:setElementExtraHealth ( tyrant, 20000 ) setGameSpeed ( tyrant, 5) outputChatBox ( "#ff0000Tyrant a Spawneado, Corre!", getRootElement(), 255, 255, 255, true ) onZomieWasted = 75 myBlip = createBlipAttachedTo ( tyrant, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona2 ) local gMe = getLocalPlayer() ---mata function bot ( attacker ) if ( getElementType ( attacker ) == "ped" ) then local vida = getElementHealth(gMe) if ( vida >= 0 ) then killPed ( source ) end end end addEventHandler("onPlayerDamage", getRootElement(), bot)
