Jump to content

Plate

Members
  • Posts

    938
  • Joined

  • Last visited

Everything posted by Plate

  1. Hola tengo una duda si se puede hacer esto function destroyThePickup(thePickup) if (isElement(thePickup)) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup)
  2. Plate

    outputChatBox

    Gracias no sabia eso
  3. Si estaba solucionado ya jaja
  4. No revivas topics viejos Phantom
  5. Plate

    outputChatBox

    No salio por que simplemente ponias un getRootElement() y listo
  6. es verdad sasuke ahora pruebo men function destroyMyPickup() if (isElement(pickup)) then if (source == pickup) then destroyElement(pickup) end end end addEventHandler("onPickupHit", pickup, destroyMyPickup)
  7. ya le agregue el tonumber ammo pero igual no lo levanta
  8. Por que cuando paso por el pickup no pasa nada supongo que tengo que usar onPickupHit
  9. function Test(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent(thePlayer, "Panel", getRootElement()) else outputChatBox ("Acesso Negado", thePlayer, 193, 13, 13) end end remplaza
  10. por que escribis en ingles si esto es secion española? :FACEPALM:
  11. Server function showPanel(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent(thePlayer, "Panel", getRootElement()) else outputChatBox ("Acesso Negado", thePlayer, 193, 13, 13) end end addCommandHandler("ELCOMANDO", showPanel) Client addEvent("Panel",true) function openWindow6() end addEventHandler("Panel", getRootElement(), openWindow6)
  12. function dejar() local row, col = guiGridListGetSelectedItem ( itemGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local item = guiGridListGetItemText ( itemGrid, row, 1 ) local ammo = guiGridListGetItemText ( itemGrid, row, 2 ) local itemName = getWeaponIDFromName(item) local x, y ,z = getElementPosition(localPlayer) local pickup = createPickup(x + 5, y, z, 2, itemName, 3000, tonumber(ammo)) triggerServerEvent("onPlayerPullItem", localPlayer, itemName, ammo) end end addEventHandler("onClientGUIClick", tirar, dejar, false) pero tengo que usar onPickupHit no para que le de el arma con la ammo
  13. Hola alguien me podria decir por que este script no anda tampoco me da error function dejar() local row, col = guiGridListGetSelectedItem ( itemGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local item = guiGridListGetItemText ( itemGrid, row, 1 ) local ammo = guiGridListGetItemText ( itemGrid, row, 2 ) local x, y ,z = getElementPosition(localPlayer) local pickup = createPickup(x + 5, y, z, 2, item, 3000, ammo) end end addEventHandler("onClientGUIClick", tirar, dejar, false)
  14. Plate

    Un autoteam

    function teams ( ) miTeam = createTeam ( "elnombredelteamaqui", 0, 255, 255 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), teams) function addthem ( player ) if ( not player ) then return end local accountName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "AquiElGrupoACL" ) ) then setPlayerTeam ( player, miTeam ) end end function addtoteamtimer ( ) setTimer ( addthem, 1000, 1, source ) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerSpawn", root, addtoteamtimer )
  15. Yo diria que no por que es un simple play con otro resource
  16. Plate

    ¡Música!

    De hecho soy tan genial que el me escucha a mi. jjajajajajajajaj
  17. Ya lo intente puse el module mta_mysql.dll adentro y me dice unable to find modules/mta_mysql.dll
  18. Probe reinstalando el mta y ahora no me aparece la carpeta modules
  19. ya lo puse en la carpeta de modules y lo agregue en mtaserver.conf <module src="mta_mysql.dll"/>
  20. Plate

    Ayudita

    Pero cual es el error en el debugscript con mi script
×
×
  • Create New...