Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. Usa un bucle for for index, player in ipairs getElementsByType("players") do -- Bucleamos la lista de jugadores. local x, y, z = getElementPosition(player) -- Conseguimos la posición --[[ Aca ponemos todo lo que queres que pase para cada jugador ]] end
  2. Renkon

    No funca.

    function music () gangnam = playSound3D( "http://a.tumblr.com/tumblr_m9v2ujdS2q1r5dxz2o1.mp3", 2372.10, 2759.76, 10.82 ) setSoundMaxDistance( gangnam, 0.5 ) setSoundVolume(gangnam,0.3) end addEventHandler( "onClientResourceStart", localPlayer, music )
  3. Renkon

    No funca.

    No está muy bajo el volumen y la distancdia? Además es CLIENT SIDE onClientResourceStart usa en lugar de onResourceStart y tambien te falto el elemento pro lo tanto hazlo asi
  4. Renkon

    Skins

    function skinOnJoin( ) setElementModel ( source, 29 ) end addEventHandler ("onPlayerJoin", getRootElement(), skinOnJoin) source es el generador del evento, que, siempre, en onPlayerJoin, es el usuario que ingresa. Saludos
  5. OnClientVehicleCollision
  6. Well, I just saw from many scripts that they used unpack in order to save 'em as variables.
  7. I am afraid I do not know then, delete what I told you to write. I'm sorry Btw only one will work because you make two fors, and the last one gets inside the variable. The first won't get an event.
  8. You should use unpack(var) local jobs = { {"Police Officer",1547.06470, -1681.80249, 13.55873, 0, 100, 255}; {"Paramedic",1178.41431, -1328.58850, 14.11890, 0, 255, 255}; } for _, job in ipairs (jobs) do local v1, v2, v3, v4, v5, v6, v7 = unpack (job) jobMarker = createMarker(v2, v3, v4, "cylinder", 1.5, v5, v6, v7) end addEventHandler("onClientMarkerHit", jobMarker, function() --CODE HERE end )
  9. g_Root = getRootElement() addEventHandler('onPlayerJoin',g_Root, function () dxDrawText('Server : ' .. getPlayerName(source) .. ' has joined the game ',3,0,10,10,tocolor(0,0,0,200),0.3,"default") end )
  10. I am not so good at LUA but, shouldn't variables be unpacked? In that case
  11. porque el timer no se ejecuta nunca... y no hay variables r g y b entonces
  12. Renkon

    How can i?

    if getTeamName(pTeam) == "yourTeamName" then
  13. if (getTeamName (getPlayerTeam ( commander )) == "Killers")
  14. Finally done.. local LabelInf1 = guiCreateLabel(sW/17.3913043, sH/1.4, sW/6.34920635, 50, "deathmatchin", false) guiLabelSetColor ( LabelInf1, 255, 255, 255 ) guiSetFont ( LabelInf1, Chino ) guiLabelSetHorizontalAlign ( LabelInf1, "center" )
  15. You serious?... I have been using that all the time...
  16. Probably the best script and the hardest one I have ever seen.
  17. local LabelInf1 = guiCreateLabel(sW/13, sH/1.4, 200, 50, "deathmatchin", false) guiLabelSetColor ( LabelInf1, 255, 255, 255 ) guiSetFont ( LabelInf1, Chino )
  18. Renkon

    My system packages.

    line 74, does vehicle_ids table exist?
  19. you can edit the position by yourself. it will be same position on every resolution. It won't be centered above the radar. That's the problem !
  20. It won't be centered in certain resos
  21. Tienes un error en el elemento de setElementInterior. (un error tonto ) hitPlayer HitPlayer
  22. dxCreateFont with the custom font I have isn't working correctly. That's why I am not using dx. It looks like an Arial Font with dx, but with GUI it's fine.
  23. Usá SetElementInterior
  24. dxCreateFont doesn't create the font I want to, so I had to use GUI.
  25. Renkon

    Ayuda

    En fin, como te digo. No funcionará de esa forma. La única será usando un setElementData para el ID,o algo así. Porque desde ya es erróneo. Si bien el vector vehicles posee todos los vehículos. Este, asi mismo, no es otro vector (sería bidimensional). Si no que simplemente, el vehicle puedes conseguir los datos con determinadas funciones. Lo mejor será, o usar setElementData, o ayudarte con la BD
×
×
  • Create New...