-
Posts
297 -
Joined
-
Last visited
Everything posted by Xperia
-
function crearCuadrado() dxDrawRectangle(195.0,734.0,955.0,33.0,tocolor(0,0,0,150),false) end addEventHandler("onClientRender",root,crearCuadrado) function playerloc ( source ) local playername = getPlayerName(getLocalPlayer()) local location = getElementZoneName ( getLocalPlayer()) outputChatBox ( "* " .. playername .. "'s Location: " .. location, getRootElement(), 0, 255, 255 ) end addCommandHandler ( "loc", playerloc ) Prueba eso.
-
¿Que funcion puedo usar para coger la ID de un arma?
-
Ahora le quiero poner armas, y tengo esto, pero me dice "bad argument #1 to unpack", en la linea 30.
-
Min 1:28 EDIT: Ya lo he arreglado y esta to hecho, gracias por ayudarme.
-
Gracias Solid. ¿Y como puedo quitar la camara que sale cuando un jugador muere o pone /kill?
-
Ahora cuando estoy con otro user en el server, y yo spawneo, el no puede porque no le aparece el panel. x, y = guiGetScreenSize() ventana = guiCreateWindow(x*0.7950219619326501,y*0.01953125,x*0.1969253294289898,y*0.8268229166666667,"Spawn",false) guiSetAlpha(ventana,0.94999998807907) guiWindowSetMovable(ventana,false) guiWindowSetSizable(ventana,false) grid_skins = guiCreateGridList(x*0.0095168374816984,y*0.6276041666666667,x*0.1786237188872621,y*0.1875,false,ventana) guiGridListSetSelectionMode(grid_skins,2) columnSkins = guiGridListAddColumn(grid_skins," ",0.95) grid_city = guiCreateGridList(x*0.0095168374816984,y*0.06640625,x*0.1786237188872621,y*0.2447916666666667,false,ventana) guiGridListSetSelectionMode(grid_city,2) columnCity = guiGridListAddColumn(grid_city,"San Andreas",0.95) rowCitySF = guiGridListAddRow(grid_city) guiGridListSetItemText ( grid_city, rowCitySF, columnCity, "San Francisco", false, false ) rowCityLS = guiGridListAddRow(grid_city) guiGridListSetItemText ( grid_city, rowCityLS, columnCity, "Los Santos", false, false ) grid_groups = guiCreateGridList(x*0.0095168374816984,y*0.3502604166666667,x*0.1786237188872621,y*0.2447916666666667,false,ventana) guiGridListSetSelectionMode(grid_groups,2) columnGroups = guiGridListAddColumn(grid_groups," ",0.95)
-
Gracias Castillo, si tengo algun error mas, lo posteare.
-
Ahora, tengo esto: ventana = guiCreateWindow(1086,15,269,635,"Spawn",false) guiSetAlpha(ventana,0.94999998807907) guiWindowSetMovable(ventana,false) guiWindowSetSizable(ventana,false) grid_skins = guiCreateGridList(13,482,244,144,false,ventana) guiGridListSetSelectionMode(grid_skins,2) guiGridListAddColumn(grid_skins," ",0.95) rowSkin1 = guiGridListAddRow(grid_skins) rowSkin2 = guiGridListAddRow(grid_skins) grid_city = guiCreateGridList(13,51,244,188,false,ventana) guiGridListSetSelectionMode(grid_city,2) columnCity = guiGridListAddColumn(grid_city,"San Andreas",0.95) rowCitySF = guiGridListAddRow(grid_city) guiGridListSetItemText ( grid_city, rowCitySF, columnCity, "San Francisco", false, false ) rowCityLS = guiGridListAddRow(grid_city) guiGridListSetItemText ( grid_city, rowCityLS, columnCity, "Los Santos", false, false ) grid_groups = guiCreateGridList(13,269,244,188,false,ventana) guiGridListSetSelectionMode(grid_groups,2) columnGroups = guiGridListAddColumn(grid_groups," ",0.95) groups_name = guiCreateLabel(112,246,88,23,"Groups",false,ventana) guiSetFont(groups_name,"default-bold-small") skins_name = guiCreateLabel(118,461,88,23,"Skins",false,ventana) guiSetFont(skins_name,"default-bold-small") city_name = guiCreateLabel(117,30,88,23,"City",false,ventana) guiSetFont(city_name,"default-bold-small") spawn_button = guiCreateButton(1088,654,266,99,"Spawn",false) guiSetFont(spawn_button,"default-bold-small") info = guiCreateMemo(375,653,653,101,"",false) guiMemoSetReadOnly(info,true) guiSetVisible ( ventana , true ) showCursor ( true ) function name1() if rowCitySF then rowGroupsPolice = guiGridListAddRow(grid_groups) guiGridListSetItemText ( grid_groups, rowGroupsPolice, columnGroups, "Police", false, false ) end end addEventHandler("onClientGUIClick",getRootElement(),name1) El error es que al hacer click en "cualquier sitio del GUI", crea el row "Police" y se crea tantas veces como clicks des, y yo solo quiero que lo cree 1 vez, y solo al pulsar "San Francisco".
-
function ped() local w, h = guiGetScreenSize () local x, y, z = getWorldFromScreenPosition ( w/2, h/2, 10 ) createPed ( 285, x, y, z ) end ¿Estaria bien asi?
-
¿Y si quiero hacer que un skin se muestre?
-
Me explique mal, me refiero a hacer un Spawn Panel, con sus teams privados, y teams publicos, y skin selector(me explique mal).
-
function oxg() oxigen = getPedOxygenLevel ( localPlayer ) if oxigen == 0 then cancelEvent() end end addEventHandler("onClientPlayerDamage",getRootElement(),oxg) PD: Me aburria y te lo he hecho.
-
Quitar objetos traspasables
Xperia replied to Xperia's topic in Ayuda relacionada al cliente/servidor
Todo solucionado, al final lo tape.Gracias a todos. -
¿Como quieres hacer un gif con una sola imagen?Esa funcion sirve para simular un movimiento con la secuencia de diversas imagenes.
-
No se a lo que te refieres, con:
-
Para lo de la municion puedes usar esto: getPedTotalAmmo() getPedAmmoInClip()
-
Quitar objetos traspasables
Xperia replied to Xperia's topic in Ayuda relacionada al cliente/servidor
ID = { 11340, 10983, 3872, 3865, 3887, 3866, 10984, 11223, 11226, 10986, 10985, 3864, 11387, 11326, 11416, 11327 } Lods = { 11339, 11143, 0, 3888, 3869, 11279, 11328 } for k, i in ipairs(ID) do removeWorldModel(i,100000,0,0,0) end for k, i in ipairs(Lods) do removeWorldModel(i,100000,0,0,0) end setOcclusionsEnabled(false) Es en SF, cerca de los bomberos, que hay una zona que esta en obras. -
function chat(theType) if theType == 0 then outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", getRootElement(), 255, 255, 255, true) outputChatBox ( "#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", getRootElement(), 255, 255, 255, true) end end addCommandHandler("comnados",chat) Prueba esto.
-
Quitar objetos traspasables
Xperia replied to Xperia's topic in Ayuda relacionada al cliente/servidor
Me parece que no porque el objeto es igual a otro que esta al lado pero es borrable. -
Quitar objetos traspasables
Xperia replied to Xperia's topic in Ayuda relacionada al cliente/servidor
No creo que sea eso porque de radio tengo 10000 y la distancia no pasara de los 10 metros.
