Plate Posted May 15, 2012 Posted May 15, 2012 Como se podria hacer que cuando el player se saque vida se le vaya recuperando de apoco
Castillo Posted May 15, 2012 Posted May 15, 2012 Podes crear un timer con: setTimer getElementHealth setElementHealth Es muy facil.
Plate Posted May 15, 2012 Author Posted May 15, 2012 ok muchas gracias solid tengo un problema con el exp_system en la scoreboard es que cuando el player sale y entra denuevo es level 0 y no puede volver a subir levels
Castillo Posted May 15, 2012 Posted May 15, 2012 Estan registrados y logueados en el servidor, verdad? ami nunca me paso eso.
Plate Posted May 15, 2012 Author Posted May 15, 2012 si se logean y cuando salen y vuelven se logean y aparecen en level 0
Castillo Posted May 15, 2012 Posted May 15, 2012 Sabes que tenes razon? no me habia dado cuenta, ya lo arregle y subi una nueva version para arreglar el bug: https://community.multitheftauto.com/ind ... ls&id=1253
Plate Posted May 15, 2012 Author Posted May 15, 2012 (edited) Muchas Gracias Solid sos un Groso! gracias por esforsarte / tomarte el tiempo para arreglar eso Edited May 15, 2012 by Guest
Plate Posted May 15, 2012 Author Posted May 15, 2012 Si perdon desaparecio la primera ves que lo inicie salio ya esta gracias amigo!
Castillo Posted May 15, 2012 Posted May 15, 2012 No es un chat esto, simplemente postea el problema y si puedo te ayudo.
Plate Posted May 15, 2012 Author Posted May 15, 2012 Esta bien solamente queria saber como poner una imagen pequeña (no un blip una imagen) en el mapa y como remplazar el mapa f11
Castillo Posted May 15, 2012 Posted May 15, 2012 Como que una imagen? queres decir que aparezca en la pantalla del mapa nada mas? no en el radar como los blips? Para lo segundo podes usar estos recursos: https://community.multitheftauto.com/ind ... ils&id=381 https://community.multitheftauto.com/ind ... ils&id=382
Plate Posted May 15, 2012 Author Posted May 15, 2012 (edited) exelente muchas gracias solid con ese simple recurso hago los 2 Gracias!!!!!! solid y sobre eso de los autos ElMota me paso un script para bloquearlos por team y me dijo que cambie las ariavles del mapa bueno hize todo y despues el script no funciono este es el script addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 19 do vehicles [ getElementByID ( "autos".. index ) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "SAS" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros de SAS", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) Edited May 15, 2012 by Guest
Alexs Posted May 15, 2012 Posted May 15, 2012 exelente muchas gracias solid con ese simple recurso hago los 2 Gracias!!!!!!solid y sobre eso de los autos ElMota me paso un script para bloquearlos por team y me dijo que cambie las ariavles del mapa bueno hize todo y despues el script no funciono este es el script addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 19 do vehicles [ getElementByID ( "autos".. index ) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "SAS" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros de SAS", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) Los vehiculos deben estar en un .map agregado al recurso y las ID deben de ser autos1, autos2, autos3.... (los numeros intermedios)... autos19. OffTopic: , ese script lo hicimos por el foro, lo creamos para mi server y @ElMota lo distribuye, wow, pero que pedazo de (cabron) amigo
Plate Posted May 15, 2012 Author Posted May 15, 2012 (edited) ElMota me dijo que era tuyo y alex hize lo que dijistes y no funciona mira alex haci esta como me dijistes y no funciona "editor_main"> "pickup (Sniper) (1)" type="34" interior="0" amount="100" respawn="10" dimension="0" ammo="100" name="Sniper" posX="160.623734" posY="1933.336182" posZ="34.398438"> "object (drydock1_SFSe) (1)" doublesided="false" model="10828" interior="0" dimension="0" name="roof" posX="280.996704" posY="1876.698120" posZ="14.849337" rotX="90.2407954" rotY="-2.57831008" rotZ="1.71887339"> "autos1" paintjob="3" model="433" plate="QHP0 Z35" interior="0" dimension="0" posX="-2270" posY="2300.8999023438" posZ="5.4000000953674" rotX="0" rotY="0" rotZ="270"> "autos2" paintjob="3" model="433" plate="ABHU ONI" interior="0" dimension="0" posX="-2270.1000976563" posY="2304.8999023438" posZ="5.4000000953674" rotX="0" rotY="0" rotZ="270"> "autos3" paintjob="3" model="433" plate="GL28 EBV" interior="0" dimension="0" posX="-2270.3999023438" posY="2309.3999023438" posZ="5.4000000953674" rotX="0" rotY="0" rotZ="270"> "autos4" paintjob="3" model="427" plate="2ZC8 H5O" interior="0" dimension="0" posX="-2271" posY="2285.6000976563" posZ="5.0999999046326" rotX="0" rotY="0" rotZ="274"> "autos5" paintjob="3" model="427" plate="B4GI OZQ" interior="0" dimension="0" posX="-2271.1999511719" posY="2288.6999511719" posZ="5.0999999046326" rotX="0" rotY="0" rotZ="273.9990234375"> "autos6" paintjob="3" model="427" plate="Q83D Z9F" interior="0" dimension="0" posX="-2271.1000976563" posY="2291.8000488281" posZ="5.0999999046326" rotX="0" rotY="0" rotZ="273.9990234375"> "autos7" paintjob="3" model="468" plate="24AG 9OM" interior="0" dimension="0" posX="-2272.3000488281" posY="2294.6000976563" posZ="4.5999999046326" rotX="0" rotY="0" rotZ="274"> "autos8" paintjob="3" model="468" plate="6XP9 787" interior="0" dimension="0" posX="-2272.1000976563" posY="2297.8000488281" posZ="4.5999999046326" rotX="0" rotY="0" rotZ="276"> "autos9" paintjob="3" model="497" plate="PQ21 SDM" interior="0" dimension="0" posX="-2227.3000488281" posY="2326.8999023438" posZ="7.8000001907349" rotX="0" rotY="0" rotZ="0"> "autos10" paintjob="3" model="497" plate="NE2Y 36B" interior="0" dimension="0" posX="-2227.5" posY="2304.3000488281" posZ="5.5999999046326" rotX="0" rotY="0" rotZ="0"> "autos11" paintjob="3" model="548" plate="STFL 2S5" interior="0" dimension="0" posX="-2294.6999511719" posY="2418.8000488281" posZ="6.5" rotX="0" rotY="0" rotZ="44"> "autos12" paintjob="3" model="548" plate="OPU2 VSL" interior="0" dimension="0" posX="-2277" posY="2399.8999023438" posZ="6.5" rotX="0" rotY="0" rotZ="43.994750976563"> "autos13" paintjob="3" model="597" plate="2LVL Q0E" interior="0" dimension="0" posX="-2271.8000488281" posY="2313.1000976563" posZ="4.6999998092651" rotX="0" rotY="0" rotZ="270"> "autos14" paintjob="3" model="597" plate="H5L5 MSR" interior="0" dimension="0" posX="-2271.6999511719" posY="2316.3999023438" posZ="4.6999998092651" rotX="0" rotY="0" rotZ="270"> "autos15" paintjob="3" model="425" plate="GBS3 4EI" interior="0" dimension="0" posX="-2294" posY="2240.1000976563" posZ="5.6999998092651" rotX="0" rotY="0" rotZ="0"> addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 15 do vehicles [ getElementByID ( "autos".. index ) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "SAS" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros de SAS", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) Edited May 15, 2012 by Guest
Plate Posted May 15, 2012 Author Posted May 15, 2012 Cuango lo pongo haci no anda y cuando lo pongo en archivos distintos pero en la misma carpeta tampoco
Recommended Posts