Jump to content

miniatur

Members
  • Posts

    13
  • Joined

  • Last visited

Details

  • Gang
    DSTR

miniatur's Achievements

Square

Square (6/54)

0

Reputation

  1. lo eh colocado de esa forma pero el nivel y la exp se queda en 0 y no pasa de ahi
  2. Que tal a todos tengo un reciente problema sobre dibujar los niveles en la pantalla bueno yo estoy usando el exp system de castillo la cuestion es que en un script aparte añadi cosas para que los niveles y la experiencia se pudiera ver en la pantalla pero a la hora de iniciar el script no hace draw según el problema me dice: attempt concatenate local "lvl" (a booleam value) a continuacion les muestro parte del script: addEventHandler("onClientRender", root, function() local lvl = getElementData(getLocalPlayer(),"level") local r,g,b = getPlayerNametagColor(getLocalPlayer()) local ex = getElementData(getLocalPlayer(),"exp") local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 sWidth, sHeight = guiGetScreenSize() if ( UP == 1 ) then text = "250" elseif ( UP == 2 ) then text = "500" elseif ( UP == 3 ) then text = "800" elseif ( UP == 4 ) then text = "1000" elseif ( UP == 5 ) then text = "1300" end dxDrawText("Nivel: ["..lvl.."]", sWidth-147, sHeight-95,sWidth-97, sHeight-99, tocolor(0, 0, 0, 255), 1, "default-bold", "right", "top") dxDrawText("Experiencia: ["..ex.."]", sWidth-272, sHeight-79,sWidth-97, sHeight-100, tocolor(0, 0, 0, 255), 1, "default-bold", "right", "top end ) si alguien me pudiera dar la mano con eso seria de gran ayuda.
  3. the more likely it is that we buy have been scammed sanehosting apparently the owner of the company did not have to pay the large bill owed ​​about various things he did was just take all the money from your customers eh leave without a trace I had to change my hosting company that to date I have no ftp access so I wanted to raise resources and could not which made me lose users good and include your payment system has a vulnerability that I discovered by accident is that you do as you will pay with sms to let a bill can repeat the process several times and to pay a bill all are paid and you deposited all that dibnero your account so I will not feel so cheated that he was not well but if we see it from another point of view was a future rematch
  4. https://community.multitheftauto.com/index.php?p=resources&s=details&id=5477
  5. puedes descargar el resource de autoteams para cuando los usuarios se logueen en el server estos entren a los teams en los que fueron reclutados. para reclutar necesitarias un sistema de reclutacion que funcione por ACL
  6. aqui te dejo uno por si te interesa https://community.multitheftauto.com/index.php?p=resources&s=details&id=7068
  7. en vez de Zona = createColRectangle ( x,y, 10, 10 ) cambialo por Zona = createColCircle ( x,y, 10, 10 )
  8. si, esta modificado para el gang_system
  9. hola a todos bueno este es el resource de spawn de 50p pero modificado, la cuestion es que me tira este mensaje y quisiera saber donde es el problema g_root = getRootElement( ); classGroups = { }; addEvent( "spawn_clientRequestSpawn", true ); addEventHandler( "spawn_clientRequestSpawn", g_root, function( categoryIndex, classIndex, skinIndex ) local class = classGroups[ categoryIndex ].classes[ classIndex ]; local skin = class.skinMngr.skins[ skinIndex ]; local GangName = class.gang if ( GangName and tostring(GangName)~="" ) then local TheSpawnPlayerGangName = getElementData(client, "gang") if ( TheSpawnPlayerGangName and tostring(TheSpawnPlayerGangName) == GangName ) then fadeCamera(client, false ); setTimer( SpawnPlayerOOPFunc, 1000, 1, categoryIndex, classIndex, skinIndex, client ); else triggerClientEvent (client, "WarningSpawnForGang", client, GangName ) end else fadeCamera(client, false ); setTimer( SpawnPlayerOOPFunc, 1000, 1, categoryIndex, classIndex, skinIndex, client ); end end ); function SpawnPlayerOOPFunc(categoryIndex, classIndex, skinIndex, thePlayer) if skinIndex then local class = classGroups[ categoryIndex ].classes[ classIndex ]; local skin = class.skinMngr.skins[ skinIndex ]; local spawn = true; local spawned; if spawn then if not class.team then class.team = createTeam( class.name, class.color.red, class.color.green, class.color.blue ); end spawned = spawnPlayer( thePlayer, skin.spawnLoc.x, skin.spawnLoc.y, skin.spawnLoc.z, skin.spawnLoc.rot, skin.modelId, 0, 0, class.team ) end if spawned then setElementData( thePlayer, "team", class.name ) setElementData( thePlayer, "classnme", tostring(skin.name) ) fadeCamera( thePlayer, true ); setCameraTarget( thePlayer, thePlayer ); setTimer( setCameraTarget, 100, 1, thePlayer, thePlayer ); triggerClientEvent( thePlayer, "spawn_SpawnedSuccessfully", thePlayer ); for _, weapon in ipairs( class.weaponMngr.weapons ) do giveWeapon( thePlayer, weapon.id, weapon.ammo, false ); end createBlipAttachedTo( thePlayer, 0, 2, class.color.red, class.color.green, class.color.blue ) end end end addEventHandler( "onPlayerSpawn", g_root, function ( ) end ); addEventHandler( "onPlayerWasted", g_root, function( ) fadeCamera( source, false, 4 ); setTimer( requestMenu, 5000, 1, source ); deleteAllPlayerBlips( source ) end ); function requestMenu( player ) callClientFunc( player, "showSpawnMenu", true, true ); callClientFunc( player, "classSelected" ); end addCommandHandler( "kill", function( plr ) killPed( plr ); end ) function preloadClassesInfo( ) local groups = getElementsByType( "category" ); for _, group in ipairs( groups ) do table.insert( classGroups, Group:New( group ) ); end end addEventHandler( "onResourceStart", getResourceRootElement(), preloadClassesInfo ) function deleteAllPlayerBlips(player) local elements = getAttachedElements(player) if (elements) then for i, element in ipairs(elements) do if (getElementType(element) == "blip") then destroyElement(element) end end end end addEventHandler( "onPlayerQuit", g_root, function() deleteAllPlayerBlips(source) end ); ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ function callClientFunc( player, funcName, ... ) if #{ ... } ~= 0 then triggerClientEvent( player, "_clientCallFunction", root, funcName, ... ) else triggerClientEvent( player, "_clientCallFunction", root, funcName ) end end addEvent( "_serverCallFunction", true ) addEventHandler( "_serverCallFunction", root, function( funcName, ... ) _G[ funcName ](...) end )
  10. miniatur

    .

    no, ya listo muchas gracias
  11. miniatur

    .

    @Solidsnake14 disculpa la molestia pero eh tratado de reiniciar el resource y no funciona ademas revise y sale esto : podrias solucionar el problema?
  12. miniatur

    .

    nada que ver por aca
  13. muy buenas a todos como estan' hoy hago este post para pedirles una pequeña ayuda con este resource de teamnodead ya que cuando inicio el resouce funciona pero al rato el resource deja de funcionar y los mienbros del team se pueden hacer daño y necesito que estos al dispararse no se hagan ningun tipo de daño diganme que pasa gracias. function protect() for i, TEAMS in ipairs ( getElementsByType("team") ) do if ( getTeamFriendlyFire ( TEAMS ) == true ) then setTeamFriendlyFire ( TEAMS, false ) end end end addEventHandler("onPlayerJoin", resourceRoot, protect)
  14. miniatur

    .

    nada que ver por aca
×
×
  • Create New...