Jump to content

explOdeR

Members
  • Posts

    48
  • Joined

  • Last visited

Details

  • Gang
    ~CoB~

explOdeR's Achievements

Rat

Rat (9/54)

0

Reputation

  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:
×
×
  • Create New...