-
Posts
297 -
Joined
-
Last visited
Everything posted by Xperia
-
Si funciono, gracias.
-
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...
-
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
-
Quitar objetos traspasables
Xperia replied to Xperia's topic in Ayuda relacionada al cliente/servidor
Pero quiero quitar junto a lo que borre esos 2 objetos. -
[DEV - REL] Usersystem [NOW: With Moderator panel! ]
Xperia replied to Cannonball's topic in Resources
Nice script, good job! -
Not bad, good work.
-
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 )
-
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
-
¿A que te refieres con "existen los eventos"?
-
Gracias, eso es lo que buscaba. PD: Novo, no es por nada, pero "getPlayerAccount" es solo para server-side y "onClientRender" para client-side.
-
¿Para que el "onClientRender"?
-
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 )
-
Pues eso, ¿se pueden mostrar los grupos ACL en el dxscoreboard?
-
No se si funcionara pero: function skin(playerSource) setPlayerSkin(playerSource,"285") end addEventHandler("onPlayerJoin",getRootElement(),skin)
-
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?
-
¿Quieres quitar el mapa de GTA SA?
-
Prueba esto: for i = 550, 20000 do removeWorldModel ( i, 10000, 0, 0, 0 ) end
-
¿Los recursos los pusiste en un .zip?
-
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)
-
Se encuentra en las lineas 36,37 y 38.
-
Asi no te lo copian.
-
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
-
Entra en un team, y luego en otro.Se quedan ahi.
-
Debes borrar estas lineas en el s_main.lua if ( ( plrTeam ) and ( plrTeam ~= class.team ) and ( countPlayersInTeam( plrTeam ) == 1 ) ) then destroyElement( plrTeam ); end