-
Posts
754 -
Joined
-
Last visited
Everything posted by NodZen
-
getLocalPlayer, es client y tus eventos son server side
-
Para Mi es este el problema. outputChatBox("Bienvenido de Vuelta"..getPlayerName(playerSource)"Diviertete!", source, 255, 0, 0, 255) Cambialo por este outputChatBox("Bienvenido de Vuelta "..getPlayerName(source).. "Diviertete!", source, 255, 0, 0, 255)
-
getPlayerName, no está definido de quien es el nombre. Ademas , no creaste el Team ( spawnTeam ).
-
No hay problema, pero que estaba mal?.
-
Y a Quién va dirigida esa cámara?.
-
Si quieres hacerlo Client, cambia los Eventos que tienes.
-
Y como Obtienes la data del Rank , cuando el player se loguea? Ademas que columna pusiste en el Scoreboard?. Postea la parte que editaste. Ademas creas 2 columnas en ese script.
-
setSoundVolume --Por las dudas.
-
Deberia funcionar. El tema del skin, es que este script es server y el engineLoad es client.
-
local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905Dale Perra Ven a Matarme...Si Puedes!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( nemesi ) ) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy)
-
Si , porque no terminaste la funcion de la linea 19. y que le tengo q hacer? Agregale un evento como "onBotWasted".
-
Si , porque no terminaste la funcion de la linea 19.
-
local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905Dale Perra Ven a Matarme...Si Puedes!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) function destroy () if ( not isElement ( nemesi ) ) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy)
-
Tienes que saber si no está el Boss entonces destruyes el blip. function otra () if ( not isElement ( nemesi ) ) then destroyElement( myBlip ) end end Algo asi.
-
No es problema del MTA, si no de tu instalacion del gamemode. En que destino tienes instalado el GM?.
-
Nuncan va a funcionar , porque no tiene funcion... Tu funcion se llama "functionr". Ademas està mal lo debajo del ultimo end el add.
-
Puede que solo sea parte del script.
-
Pekio, No te falta un end?.
-
La variable se llama: teamname . Y en el if pusiste teamName. Creo que si funcionará, Pero que es ese skin al final?
-
Probalo así function anim (source) setPedAnimation( source, "shop", "Grlfrd_Kiss_03", 5000, false) outputChatBox ( "* Kiss Anim By Zoom", source, 0, 0, 255 ) end bindKey("F1", "down", anim)
-
Viste el gamemode Play , edita el archivo "broph.lua" ( borra todo y pega esto ) local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) setElementModel(player, 287) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
