Jump to content

Xperia

Members
  • Posts

    297
  • Joined

  • Last visited

Everything posted by Xperia

  1. Podrias guiarte con esto: Client addEventHandler("onClientGUIClick",root, function () local money = getPlayerMoney(player) local precioSkin1 = 50000 if ( money >= precioSkin1 ) then triggerServerEvent("onGiveWeapon",player) takePlayerMoney(precioSkin1) end end ) Server addEvent("onGiveWeapon",true) addEventHandler("onGiveWeapon",root, function(skinID) setPlayerSkin(player,285) end ) PD: Lo he hecho a la rapida...
  2. Si quieres que bajen a su bola podrias hacer algo como lo que te dijeron arriba pero si quieres que cuando un jugador llegue a "la puerta del ascensor", podrias usar: createMarker onMarkerHit
  3. Pero quiero quitar junto a lo que borre esos 2 objetos.
  4. Or you can try this: players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart )
  5. Xperia

    No funciona

    Tengo este script de ACL teams, recien empezado, y mi problema es que no muestra los players que estan conectados: Ventana = guiCreateWindow(342,214,516,358,"ACL Teams",false) guiSetAlpha(Ventana,1) guiWindowSetSizable(Ventana,false) Name = guiCreateLabel(249,37,146,29,"Name:",false,Ventana) guiSetFont(Name,"default-bold-small") Team = guiCreateGridList(9,246,226,100,false,Ventana) guiGridListSetSelectionMode(Team,2) columTeam = guiGridListAddColumn(Team,"Teams",0.99) nameEdit = guiCreateEdit(314,31,191,30,"",false,Ventana) redEdit = guiCreateEdit(314,73,191,30,"",false,Ventana) blueEdit = guiCreateEdit(314,151,191,30,"",false,Ventana) greenEdit = guiCreateEdit(314,112,191,30,"",false,Ventana) Blue = guiCreateLabel(249,159,146,29,"Blue:",false,Ventana) guiSetFont(Blue,"default-bold-small") Green = guiCreateLabel(249,118,146,29,"Green:",false,Ventana) guiSetFont(Green,"default-bold-small") Red = guiCreateLabel(249,80,146,29,"Red:",false,Ventana) guiSetFont(Red,"default-bold-small") local Players = guiCreateGridList(9,27,226,214,false,Ventana) guiGridListSetSelectionMode(Players,2) column = guiGridListAddColumn(Players,"Players",0.99) removeTeam = guiCreateButton(243,295,256,52,"Remove from team",false,Ventana) createTeam = guiCreateButton(243,186,256,52,"Create team",false,Ventana) moveTeam = guiCreateButton(243,240,256,52,"Move to team",false,Ventana) guiSetVisible ( Ventana , false ) bindKey("o","down", function( ) if guiGetVisible ( Ventana ) then guiSetVisible ( Ventana, false ) showCursor ( false ) else guiSetVisible ( Ventana, true ) showCursor ( true ) end end ) function show() if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( Players ) guiGridListSetItemText ( Players, row, column, getPlayerName ( playeritem ), false, false ) end end end
  6. ¿A que te refieres con "existen los eventos"?
  7. Gracias, eso es lo que buscaba. PD: Novo, no es por nada, pero "getPlayerAccount" es solo para server-side y "onClientRender" para client-side.
  8. ¿Para que el "onClientRender"?
  9. Añade esto en el client: function quitar ( ) showPlayerHudComponent ( "armour", false ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ( "ammo", false) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "wanted", false ) showPlayerHudComponent ( "radar", true ) showPlayerHudComponent ( "crosshair", true ) end addEventHandler ( "onClientPlayerSpawn", localPlayer, quitar )
  10. Pues eso, ¿se pueden mostrar los grupos ACL en el dxscoreboard?
  11. Xperia

    Skin para race

    No se si funcionara pero: function skin(playerSource) setPlayerSkin(playerSource,"285") end addEventHandler("onPlayerJoin",getRootElement(),skin)
  12. Pues eso, borre una zona con removeWorldObject, pero se quedaron 2 objetos, los cuales no se pueden coger ni la ID ni el LOD.Me gustaria quitarlos porque queda feo, pero no puedo.¿Hay alguna forma?
  13. ¿Quieres quitar el mapa de GTA SA?
  14. Prueba esto: for i = 550, 20000 do removeWorldModel ( i, 10000, 0, 0, 0 ) end
  15. ¿Los recursos los pusiste en un .zip?
  16. players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) addCommandHandler("nick",ResourceStart)
  17. Se encuentra en las lineas 36,37 y 38.
  18. 1.No hagas 2 posts casi iguales. 2.No creo que te los robaran si no que sean de la comunidad. 3.Los skins pueden cogerse de otros servidores en una carpeta del directoria MTA. 4.Aqui te paso un compiler: https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905
  19. Entra en un team, y luego en otro.Se quedan ahi.
  20. Debes borrar estas lineas en el s_main.lua if ( ( plrTeam ) and ( plrTeam ~= class.team ) and ( countPlayersInTeam( plrTeam ) == 1 ) ) then destroyElement( plrTeam ); end
×
×
  • Create New...