Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    What is bad ?

    mmm I need trigger it ?
  2. iFoReX

    What is bad ?

    Yeh I copied ur last post, doesnt work TAPL
  3. iFoReX

    What is bad ?

    I triggered for send accounts data, doesnt work TAPL : Rango : -, Zombie Kills : -
  4. iFoReX

    What is bad ?

    appear rango : -, Zombie Kills : -
  5. iFoReX

    What is bad ?

    0 problem in debugscript 3, and appear : Rango : nil, Zombie Kills : nil cl-side function hideIt(zKills,Rank) local x,y,z = getElementPosition(getLocalPlayer()) local city = getZoneName(x,y,z,true) dxDrawText("Ciudad : "..city,0.0,420.0,171.0,449.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Vida : "..getElementHealth(getLocalPlayer()),595.0,548.0,642.0,566.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Rango : "..tostring(Rank),536.0,499.0,656.0,516.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Zombie Kills :"..tostring(zKills),537.0,517.0,657.0,534.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,false) end addEventHandler("onClientRender",root,hideIt) addEvent("lolEvent",true) addEventHandler("lolEvent",root,hideIt) sv-side function lol(thePlayer) local account = getPlayerAccount(thePlayer) local zKills = getAccountData(account,"Zombie kills") local Rank = getAccountData(account,"Rango") triggerClientEvent("lolEvent",zKills,Rank) end
  6. ahora, que esta mal en esto ? exports.scoreboard:addScoreboardColumn('Clan') addEventHandler("onPlayerSpawn",root,function(thePlayer) local account = getPlayerAccount(thePlayer) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then setAccountData(account,"Clan","BKZ Clan") elseif not isObjectInACLGroup ("user."..accName, aclGetGroup ( "bkz" ) ) then setAccountData(account,"Clan","Civil") end end )
  7. Listo solid sigue sin pasar nada.
  8. Muchas gracias solid funciona 100% me ayudarias con esto ?, no me aparece el rango en el scoreboard exports.scoreboard:addScoreboardColumn('Rango') setTimer( function () for p,v in ipairs ( getElementsByType("player") ) do local zK = getElementData(v,"Zombie Kills") if 'zK' >= '10' and 'zK' <= '50' then local novicio = setElementData(v,"Rango","Novicio") elseif 'zK' > '50' and 'zK' <= '100' then local amateur = setElementData(v,"Rango","Amateur") elseif 'zK' > '100' and 'zK' <= '150' then local kN = setElementData(v,"Rango","Killer Novicio") elseif 'zK' > '150' and 'zK' <= '200' then local kA = setElementData(v,"Rango","Killer Amateur") elseif 'zK' > '200' and 'zK' <= '250' then local k = setElementData(v,"Rango","Killer") end end end,1000,0)
  9. :14: unexpected symbol near '['
  10. Se queda en negro solid, ademas da problema rojo en Debugscript 3 : ERROR : logoW/logo.lua:14: attempt to index global unpack( a function value ).
  11. Si lo actualizaron, scooby se compro servidores propios y ahora es de 1028 slots o algo asi pero arriba de 1000 c:
  12. que esta malo ? la verdad no recuerdo como usar unpack addEventHandler("onClientRender",root, function() local table = {{255,0,0},{0,255,0},{0,0,255},{255,255,0},{0,255,255},{255,255,0},{0,0,0}} dxDrawText("http://bhzserver.tuars.com",0.0,571.0,198.0,599.0,tocolor(setTimer(unpack[math.random(#table)],2000,0)),0.5,"bankgothic","left","top",false,false,false) dxDrawText("Visit :",0.0,549.0,60.0,572.0,tocolor(255,255,255,255),0.7,"pricedown","left","top",false,false,false) end )
  13. iFoReX

    k-respawn

    mm Zeus eso esta casi bien, solo que solo lo seteara una vez, para que sean infinitas veces reemplazas el 1 que pusiste por un 0, prueba con eso plate.
  14. No, DeathMach tiene muchos tipos, Team Deathmach ( que es como el KSA ), Individual Deathmach y muchos mas , peor recomiendo el team Deathmach, es mas entretenido OkNo
  15. error : getOnlineBKZ( a nil value )
  16. u.u Zeus creo que el habla no de DM Race, el habla de los deathMachs Servers
  17. and now what is bad ? sv-side addCommandHandler("csystem", function (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "jefeBKZ" ) ) then triggerClientEvent(thePlayer,"abrir:It",thePlayer) end end ) function getOnlineBKZs() local t1 = {} for k,v in ipairs ( getElementsByType("player") ) do local acc = getPlayerAccount(v);if not acc or isGuestAccount(acc) then return end;local accName = getAccountName(acc) local isBKZ = isObjectInACLGroup("user."..accName,aclGetGroup("bkz")) if isBKZ == true then table.insert(t1,v) end return t1 end end cl-side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2225,0.03,0.535,0.9333,"GUI Clan System.",true) GUIEditor_Button[1] = guiCreateButton(17,96,121,38,"Agregar Miembro",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(17,140,121,42,"Remover Miembro",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(16,241,120,307,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) all = guiGridListAddColumn(GUIEditor_Grid[1],"Jugadores",0.2) GUIEditor_Grid[2] = guiCreateGridList(144,52,275,499,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) bkzC = guiGridListAddColumn(GUIEditor_Grid[2],"Miembros del Clan",0.7) guiGridListAddColumn(GUIEditor_Grid[2],"Rango",0.2) GUIEditor_Button[3] = guiCreateButton(17,52,121,38,"Agregar Jefe",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(17,188,121,42,"Darle Rango",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.3237,0.215,0.4487,0.5183,"Rank GUI",true) GUIEditor_Grid[3] = guiCreateGridList(9,22,218,280,false,GUIEditor_Window[2]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) guiGridListAddColumn(GUIEditor_Grid[3],"Rangos",0.2) GUIEditor_Button[5] = guiCreateButton(233,27,117,48,"Darle Rango !",false,GUIEditor_Window[2]) GUIEditor_Button[6] = guiCreateButton(233,255,117,45,"Cancelar",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) addEvent("abrir:It",true) addEventHandler("abrir:It",root,function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetVisible(GUIEditor_Window[2],false) end ) function addPlayers() local limpiada = guiGridListClear(GUIEditor_Grid[1]) if ( limpiada ) then for index,player in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText( GUIEditor_Grid[1], row, all, getPlayerName( player ), false, false) end end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),addPlayers) addEventHandler("onClientPlayerJoin",root,addPlayers) addEventHandler("onClientPlayerQuit",root,addPlayers) addEventHandler("onClientPlayerChangeNick",root,addPlayers) function addBKZ() local limpiada = guiGridListClear(GUIEditor_Grid[2]) if ( limpiada ) then local BKZP = getOnlineBKZs() if #BKZP ~= 0 then for k,v in ipairs ( BKZP ) do local row = guiGridListAddRow(GUIEditor_Grid[2]) guiGridListSetItemText( GUIEditor_Grid[2],row,bkzC,getPlayerName(v),false,false) end end end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),addBKZ) addEventHandler("onClientPlayerJoin",root,addBKZ) addEventHandler("onClientPlayerQuit",root,addBKZ) addEventHandler("onClientPlayerChangeNick",root,addBKZ)
  18. how I can fix this problem ? getPlayerAccount( a nil value) line 75 client-side sv addCommandHandler("csystem", function (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "jefeBKZ" ) ) then triggerClientEvent(thePlayer,"abrir:It",thePlayer) end end ) cl GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2225,0.03,0.535,0.9333,"GUI Clan System.",true) GUIEditor_Button[1] = guiCreateButton(17,96,121,38,"Agregar Miembro",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(17,140,121,42,"Remover Miembro",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(16,241,120,307,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) all = guiGridListAddColumn(GUIEditor_Grid[1],"Jugadores",0.2) GUIEditor_Grid[2] = guiCreateGridList(144,52,275,499,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) bkzC = guiGridListAddColumn(GUIEditor_Grid[2],"Miembros del Clan",0.7) guiGridListAddColumn(GUIEditor_Grid[2],"Rango",0.2) GUIEditor_Button[3] = guiCreateButton(17,52,121,38,"Agregar Jefe",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(17,188,121,42,"Darle Rango",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.3237,0.215,0.4487,0.5183,"Rank GUI",true) GUIEditor_Grid[3] = guiCreateGridList(9,22,218,280,false,GUIEditor_Window[2]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) guiGridListAddColumn(GUIEditor_Grid[3],"Rangos",0.2) GUIEditor_Button[5] = guiCreateButton(233,27,117,48,"Darle Rango !",false,GUIEditor_Window[2]) GUIEditor_Button[6] = guiCreateButton(233,255,117,45,"Cancelar",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) addEvent("abrir:It",true) addEventHandler("abrir:It",root,function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetVisible(GUIEditor_Window[2],false) end ) function addPlayers() local limpiada = guiGridListClear(GUIEditor_Grid[1]) if ( limpiada ) then for index,player in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText( GUIEditor_Grid[1], row, all, getPlayerName( player ), false, false) end end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),addPlayers) addEventHandler("onClientPlayerJoin",root,addPlayers) addEventHandler("onClientPlayerQuit",root,addPlayers) addEventHandler("onClientPlayerChangeNick",root,addPlayers) function addBKZ() local limpiada = guiGridListClear(GUIEditor_Grid[2]) if ( limpiada ) then local BKZP = getOnlineBKZs() if #BKZP ~= 0 then for k,v in ipairs ( BKZP ) do local row = guiGridListAddRow(GUIEditor_Grid[2]) guiGridListSetItemText( GUIEditor_Grid[2],row,bkzC,getPlayerName(v),false,false) end end end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),addBKZ) addEventHandler("onClientPlayerJoin",root,addBKZ) addEventHandler("onClientPlayerQuit",root,addBKZ) addEventHandler("onClientPlayerChangeNick",root,addBKZ) function getOnlineBKZs() local t1 = {} for k,v in ipairs ( getElementsByType("player") ) do local acc = getPlayerAccount(v);if not acc or isGuestAccount(acc) then return end;local accName = getAccountName(acc) local isBKZ = isObjectInACLGroup("user."..accName,aclGetGroup("bkz")) if isBKZ == true then table.insert(t1,v) end return t1 end end
  19. exports.scoreboard:addScoreboardColumn('Dinero') exports.scoreboard:addScoreboardColumn('Muertes') function sDeaths(killer) if killer ~= source then local muertes = getElementData(source,'Muertes') setElementData(source,'Muertes',muertes+1) end end addEventHandler("onPlayerWasted",root,sDeaths) function sMoney ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Dinero", getPlayerMoney ( player ) ) end end setTimer(sMoney,2000,0) addEventHandler("onPlayerQuit",root,function() local playeracc = getPlayerAccount(source) if playeracc and not isGuestAccount(playeracc) then local playerDeaths = getElementData(source,"Muertes") setAccountData(playerac,"deathsSave",playerDeaths) end end ) addEventHandler("onPlayerLogin",root,function(_, playeracc) if ( playeraccount ) then local playerDeaths = getAccountData ( playeraccount, "deathsSave" ) if ( playerDeaths ) then setElementData(source,"deathsSave",playerDeaths) end end end ) addEventHandler("onPlayerQuit",root,function() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local playermoney = getPlayerMoney ( source ) setAccountData ( playeraccount, "moneySave", playermoney ) end end ) addEventHandler("onPlayerLogin",root,function(_, playeraccount ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "moneySave" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end ) ? porque esto no sirve ?
  20. que debo cambiar en esta GUI para que me aparezca ? server addEventHandler("onClientResourceStart",resourceRoot,function() for index,player in ipairs (getElementsByType("player")) do bindKey(player,"s","down",abrirIt) end end ) function abrirIt(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "jefeBKZ" ) ) then if getKeyState("lctrl") then triggerServerEvent(source,"abrir:It",source) end end end client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2225,0.03,0.535,0.9333,"GUI Clan System.",true) GUIEditor_Button[1] = guiCreateButton(17,96,121,38,"Agregar Miembro",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(17,140,121,42,"Remover Miembro",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(16,241,120,307,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) all = guiGridListAddColumn(GUIEditor_Grid[1],"Jugadores",0.2) GUIEditor_Grid[2] = guiCreateGridList(144,52,275,499,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"Miembros del Clan",0.7) guiGridListAddColumn(GUIEditor_Grid[2],"Rango",0.2) GUIEditor_Button[3] = guiCreateButton(17,52,121,38,"Agregar Jefe",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(17,188,121,42,"Darle Rango",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.3237,0.215,0.4487,0.5183,"Rank GUI",true) GUIEditor_Grid[3] = guiCreateGridList(9,22,218,280,false,GUIEditor_Window[2]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) guiGridListAddColumn(GUIEditor_Grid[3],"Rangos",0.2) GUIEditor_Button[5] = guiCreateButton(233,27,117,48,"Darle Rango !",false,GUIEditor_Window[2]) GUIEditor_Button[6] = guiCreateButton(233,255,117,45,"Cancelar",false,GUIEditor_Window[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) addEvent("abrir:It",true) addEventHandler("abrir:It",root,function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) if guiGetVisible(GUIEditor_Window[2]) == 'true' then guiSetVisible(GUIEditor_Window[2],false) end end ) addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function() for index,player in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText( GUIEditor_Grid[1], row, all, getPlayerName( player ), false, false) end end )
  21. bueeno no lo puedo probar asi que queria saber si estaba bueno o malo aqui el script addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function() local nombre = getPlayerFromName(getLocalPlayer()) if nombre == 'ElMota' then setElementInvulnerable(nombre,true) end end ) ( esta dentro del script de solid ( extra-health ) )
  22. quiero guardarlo en accountsdata
  23. el element data esta en otro resource el de countryid.
  24. que esta mal ? 0 problemas en el debug. aqui el code addEventHandler('onPlayerJoin', root, function() outputChatBox(getPlayerName(source).. ' ha entrado a jodernos[' .. getPlayerIP(source) .. ']['..getElementData(source,"country")']', 255, 255, 255,true) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' se cambio el feo nombre por ' .. newNick, 255,255,255,true) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' dejo el PC en paz [ su mama lo saco del PC ][' .. getPlayerIP(source) .. ']', 255, 100, 100,true) end )
×
×
  • Create New...