Jump to content

explOdeR

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by explOdeR

  1. explOdeR

    Ayuda

    Hola soy ExplO quisiera un poco de ayuda, saben hace dias me urge el querer crear un afk state en el scoreboard, lo logre lo hice pero al dia siguiente me dio por darle color al state ( si un color si es que el player estaba inactivo revisando facebook o que se yo), la cosa es que si me podrian ayudar a que cuando el player este afk no solo se vea que està AFK si no que el ''AFK'' se vea rainbow colors , les apreciaria mucho la ayuda saludos. local scoreboardColumn = 'status' addEventHandler('onClientMinimize', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) addEventHandler('onClientRestore', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'Active') end ) function random() color=math.random(255, 155, 255) end ) addEventHandler('onClientMinimize', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) addEventHandler('onClientRestore', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'Active') end)
  2. explOdeR

    Ayuda

    Hola soy ExplO quisiera un poco de ayuda, saben hace dias me urge el querer crear un afk state en el scoreboard, lo logre lo hice pero al dia siguiente me dio por darle color al state ( si un color si es que el player estaba inactivo revisando facebook o que se yo), la cosa es que si me podrian ayudar a que cuando el player este afk no solo se vea que està AFK si no que el ''AFK'' se vea rainbow colors , les apreciaria mucho la ayuda saludos. local scoreboardColumn = 'status' addEventHandler('onClientMinimize', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) addEventHandler('onClientRestore', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'Active') end ) function random() color=math.random(255, 155, 255) end ) addEventHandler('onClientMinimize', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) function() setElementData(localPlayer, scoreboardColumn, 'AFK') end ) addEventHandler('onClientRestore', getRootElement(), function() setElementData(localPlayer, scoreboardColumn, 'Active') end)
  3. There is ! give a like and let a comment , sure if you like
  4. This is my last map please , leave a comment and a like ! love ya <3 soon download
  5. Enjoy the map + Like and suscribe , Cheers ExplO
  6. https://www.youtube.com/watch?v=ckIoSK-j ... re=g-all-u Haha , enjoy the map rate & suscribe
  7. @ Yazuka , si lo se pero .. necesito primero saber como hacer el script de haber ... como te lo explico , aha cuando el player te mata o tu lo matas aparezca en ese texto que sale ahí al centro entiendes ? tenia uno que me funcionaba pero murio derrepente
  8. Saben quiero hacer un text un poco mas abajo del centro de la pantalla cuando alguien mate a un player en hunter o en algo , quien me podria guiar ?
  9. Oh srry broh I forget give the respective Thanks , Im ExplO anw Thanks
  10. exports.scoreboard:scoreboardAddColumn( "Top Times") function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then top = getElementData(source,"Top Times") or 0 setElementData(source,"Top Times",top+1) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) What need for save the toptimes ? can you help me ?D:
  11. https://www.youtube.com/watch?v=FdsvE0_s ... re=g-all-u Hehe map Its in the Video Description aviable for download infernus same like + comment ! cya bro's
  12. thanks solid u are the best * <3
  13. Hey bros I have a problem with my script i made that but when i take a changuevehicle the team color changue to random colour please help function onSetTeamColorToCar(thePlayer) if isPedInVehicle (thePlayer) then local hisTeam = getPlayerTeam(thePlayer) if (hisTeam) then local r,g,b = getTeamColor(hisTeam) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,tonumber(r),tonumber(g),tonumber(b)) else -- if player not have team then local r,g,b = math.random(255),math.random(255),math.random(255) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,r,g,b) end end end function onWaitingForLaggers() --Delay it a bit to allow players to warp in their vehicle setTimer(onSetTeamColorToCar,2000,1,source) end addEventHandler("onNotifyPlayerReady",getRootElement(),onWaitingForLaggers) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),onSetTeamColorToCar) addEventHandler("onPlayerReachCheckpoint",getRootElement(),onSetTeamColorToCar) addEventHandler("onResourceStart",getRootElement(),onSetTeamColorToCar)
  14. its more simple than this bro , i just need a correction function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin, SuperModerator, Moderator")) its good ?
  15. if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin hey here its my part of my script well i want put in the staff team all ACL mods , smods ,Admins ... and that how i can do it ? function createAdminTeamOnStart () AdminTeam = createTeam ( "Admin", 255, 128, 0 )-- create a new team and named it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler Thats the complete script , please help c:
  16. hey well my computer have a intel p 4 2,4 ghz ati radeon 5440 HD 1 gb and ram 2gb so in streaming memory max its 255 ._. i cant play with that but normal gta run me perfect !! please help how i can fix that problem ?
  17. function onSetTeamColorToCar(thePlayer) if isPedInVehicle (thePlayer) then local hisTeam = getPlayerTeam(thePlayer) if (hisTeam) then local r,g,b = getTeamColor(hisTeam) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,tonumber(r),tonumber(g),tonumber(b)) else -- if player not have team then local r,g,b = math.random(255),math.random(255),math.random(255) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,r,g,b) end end end function onWaitingForLaggers() --Delay it a bit to allow players to warp in their vehicle setTimer(onSetTeamColorToCar,2000,1,source) end addEventHandler("onNotifyPlayerReady",getRootElement(),onWaitingForLaggers) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),onSetTeamColorToCar) addEventHandler("onPlayerReachCheckpoint",getRootElement(),onSetTeamColorToCar) addEventHandler("onResourceStart",getRootElement(),onSetTeamColorToCar)
  18. nop debugscript3 = Bad argument@ "isPedInVehicle" i cuando sale el color del auto al nextmap se cambia algo debe andar mal...
  19. nopes en debugscript sale no [end] algo asi pero faltan ends...
  20. function onSetTeamColorToCar(thePlayer) if isPedInVehicle (thePlayer) then local hisTeam = getPlayerTeam(thePlayer) if (hisTeam) then local r,g,b = getTeamColor(hisTeam) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,tonumber(r),tonumber(g),tonumber(b)) else -- if player not have team then local r,g,b = math.random(255),math.random(255),math.random(255) local hisVehicle = getPedOccupiedVehicle(thePlayer) setVehicleColor(hisVehicle,r,g,b) end end end end function onWaitingForLaggers() --Delay it a bit to allow players to warp in their vehicle setTimer(onSetTeamColorToCar,2000,1,source) end addEventHandler("onNotifyPlayerReady",getRootElement(),onWaitingForLaggers) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),onSetTeamColorToCar) addEventHandler("onPlayerReachCheckpoint",getRootElement(),onSetTeamColorToCar) ? asi me quedo
  21. ya se me es dificil lo unico que me queda es agregarlo al autoteam es el setVehicleColor
  22. Hola gente de el foro *-* Saben he estado intentando hacer un script para darle un color a mi team de race ejemplo : si el color del team es AAFF00 : AMARILLO VERDOSO, quiero que las luces y el auto sea así agradeceria mucho que me ayudaran o me dijeran que tengo que leer :] Gracias
  23. si entonces quedaria asi.. exports [ "scoreboard" ]:addScoreboardColumn ("Estado", 3 ) function actualizarEstado() for index, player in ipairs ( getElementsByType ( "player" ) ) do estado = getElementData (player, "afk") if (estado) then setElementData ( player, "Estado", tostring(estado)) else setElementData ( player, "Estado", "Normal") end end end setTimer ( actualizarEstado, 2500, 0 ) function afk (player, command) data = getElementData (player, "afk") if not (data == "AFK") then setElementData (player, "afk", "AFK") else setElementData (player, "afk", "Normal") end end addCommandHandler ("afk", afk) puse la funcion como afk por que es mejor ''encuentro yo '' pero da exactamente lo mismo :3 pero eso es :3
  24. a ese script le falta por que lo mas probable es que salga false en el scoreboard..
  25. efectivamente el chatbox solo tiene que ver con texto pero yo vi un resource en el community de los memes de fuuuu i todo eso eso me da la idea que no solo se pueden poner texto en el chatbox , pero ya que no funciona con el static image .... noce que hacer por eso pido la ayuda por que ya me sale el PAIS haci [Chile] pero el flag no me sale alado del Chile
×
×
  • Create New...