Jump to content

Plate

Members
  • Posts

    938
  • Joined

  • Last visited

Everything posted by Plate

  1. Jaja de nada cualquier cosa pregunta
  2. Se lo digo todo de una jaja por que esta todo desparramado addCommandHandler setPedSkin giveWeapon getTeamFromName getPlayersInTeam
  3. tendria que usar un for-loop de getPlayersInTeam
  4. function TrigeOpen(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Donadores" ) ) then triggerClientEvent(thePlayer, "AbrirEven", thePlayer) else outputChatBox("No eres donador para abrir este panel.", thePlayer) end end addCommandHandler ("paneld", TrigeOpen) PD: Gracias a tus videos aprendi a cambiar skins *-*
  5. triggerClientEvent(thePlayer, "AbrirEven", getRootElement())
  6. function destroyMyBlip() if isElement(myBlip) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroyMyBlip)
  7. local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 2520.1318359375, -953.83752441406, 82.331726074219, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 2520.1318359375, -953.83752441406, 82.331726074219, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905Dale Perra Ven a Matarme...Si Puedes!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end)
  8. No modificastes esto? addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(150000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Nemesis!, Ha Ganado 150.000$",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 1) end end) PD: ponelo en lua no en Code A mi me anda bien
  9. Para que el local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 )
  10. Fail ahora anda muchas gracias PD: Lo medio dormido al script
  11. function createTeam() sol = createTeam("Soldados", 0, 255, 0) end addEventHandler("onResourceStart", getRootElement(getThisResource()), createTeam) function spawn() spawnPlayer(source, 318.04815673828, 1939.021484375, 17.640625, 0, 297, 0, 0, sol) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerJoin", getRootElement(), spawn) function skin() skin = getPedSkin(source) end addEventHandler("onPlayerWasted", getRootElement(), skin) functionr respawn() local teamname = getTeamName(getPlayerTeam(source)) if teamname == "B.S.A.A" then setTimer(spawnPlayer, 10000, 1, source, -2436.6784667969,533.19683837891,29.90103149414, 90, skin) elseif teamname == "Soldados" then setTimer(spawnPlayer, 10000, 1, source, 318.04815673828, 1939.021484375, 17.640625, 90, skin) fadeCamera (source, true) setCameraTarget (source, source) end add addEventHandler("onPlayerWasted", getRootElement(), respawn)
  12. spawn/spawn.lua:15: "=" expected near respawn functionr respawn() local teamname = getTeamName(getPlayerTeam(source)) if teamname == "B.S.A.A" then
  13. Me sigue dando error en el "="
  14. setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 1000) end, 1100, 0) end createRadarArea
  15. Si es solo parte de un script
  16. ese seria el respawn igual me da error en el "="
  17. Hola quisiera saber si esto andaria local teamname = getTeamName(getPlayerTeam(source)) if (teamName == "U.S.S") then setTimer(spawnPlayer, 10000, 1, source, 319.04815673828, 1929.021484375, 13.640625, 90, skin)
  18. Plate

    getPlayersInTeam

    Es demaciado largo te lo mando por pm
  19. Plate

    getPlayersInTeam

    Si solid en esa linea me da el error en el argumento 4
  20. Plate

    getPlayersInTeam

    Nop me dice expected string at argument 4 got table
  21. Plate

    getPlayersInTeam

    function showmembers() local row, col = guiGridListGetSelectedItem ( clist ) if ( row and col and row ~= -1 and col ~= -1 ) then local team = guiGridListGetItemText ( clist, row, columnC ) for i, v in ipairs (getPlayersInTeam(getTeamFromName(team))) do local row = guiGridListAddRow(members) guiGridListSetItemText(members, row, mlist, getPlayerName(v), false, false) end end addEventHandler("onClientGUIClick", showlist, showmembers, false)
  22. Plate

    getPlayersInTeam

    for i, v in ipairs (getPlayersInTeam(team)) do guiGridListSetItemText(members, row, mlist, v, false, false)
  23. Plate

    getPlayersInTeam

    for i, team in ipairs (getElementsByType("team")) do asi?
  24. Plate

    getPlayersInTeam

    Lo que yo quiero es poner los miembros de un team en una gridlist
×
×
  • Create New...