Jump to content

AlvareZ_

Members
  • Posts

    611
  • Joined

  • Last visited

Everything posted by AlvareZ_

  1. una pregunta, tengo esto ps se deberia ver con todas las resoluciones no ? local g_screenX, g_screenY = guiGetScreenSize(); local gScale = 0.3; local gAlphaDistance = 25; local gMaxDistance = 50; -- Max Distance local gTextAlpha = 120; local gTextSize = 1; local gAlphaDiff = gMaxDistance - gAlphaDistance; gScale = 1 / gScale * 800 / g_screenY; local gMaxScaleCurve = { { 0, 0 }, { 3, 3 }, { 13, 5 } }; local gTextScaleCurve = { { 0, 0.8 }, { 0.8, 1.2 }, { 99, 99 } }; local gTextAlphaCurve = { { 0, 0 }, { 25, 100 }, { 120, 190 }, { 255, 190 } };
  2. el spawn lo puse con un setCameraMatrix atras osea un fondo con la gui y lo q quiero es q tu al darle del team mexicans se cambie la posicion de la camara dependiendo del team ps
  3. osea el gui lo tengo con una setCameraMatrix de fondo osea al cargar el script pero al darle Mexicans no se cambia a las otras coordenadas
  4. tengo el setTimer de esta manera: addEventHandler ( "onClientPlayerWasted", localPlayer, function ( ) guiSetVisible ( ventana , true ) guiSetVisible ( spawn_button , true ) guiSetVisible ( info , true ) setTimer(ventana,3000,1,source) showCursor ( true ) end ) q esta saliendo mal? ps esta en clienside y asi el serverside de la camara q no me anda tampoco: function spawnMexi ( cityName, teamName, skinName ) if ( teamName == "Mexicans" and skinName == "Mexicans 1" ) then setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316)
  5. y para q ar dale a algun team por ejemplo Los Santos > Police salga la camara en tal sitio ?
  6. q debo usar para q el panel la gui tarde un poco cuando el jugador muera?
  7. Solucionado, gracias otra vez xperia hehe
  8. para q me ayudaria eso para q salga en todas las resoluciones?
  9. Como ago para q la gui se vea con toda las resolucione ps me cree el spawn y me pongo la de 800x600 y no se ve como le ago para q se vea en todas las resoluciones
  10. Solucionado al 100% muchas gracias a todos por su ayuda Xperia, Fran, solid =)
  11. ps yo tengo uno e todos lo ven crealo con eso e intenta con resoluciones variadas
  12. esta funcion lo q te hace es simular el efecto con spriters https://wiki.multitheftauto.com/wiki/DxDrawGifImage ejemplo client: gif = dxDrawGifImage ( 769, 175, 193, 145, "img/logo", 0, "png", 120 ) addCommandHandler ( "destroygif", function ( ) destroyElement ( gif ) end ) meta: "img/logo1.png"/> "img/logo2.png"/> "img/logo3.png"/> "img/logo4.png"/> "img/logo5.png"/> "img/logo6.png"/> "img/logo7.png"/> "img/logo8.png"/>
  13. en el debug me dice client triggered serverside event onPlayerChooseSkin, but event not added serverside attempt to call global 'guiGridListSetItemTex' ( a nil value )
  14. a ps tienes q editar el spawn
  15. edita por la parte esta del s_main class.team = createTeam( class.name, class.color.red, class.color.green, class.color.blue ); "Mani"? D:
  16. el sistema de gangs de 50p crea los teams la cual no te permite q seas movido creando eso tendrias q editar el spawn de 50 para q no cree los teams
  17. me crea el team pero no spawnea selecciono Los Santos > Mexicans > Mexicans 1 y no me spawnea ni me mueve al team
  18. Sigue sin spawnear cuando elijo el skin Mexicans 1
  19. client: --Select Team y Spawn addEventHandler ( "onClientGUIClick", root, function ( button ) if button == "left" then if source == spawn_button then local row, col = guiGridListGetSelectedItem ( grid_groups ) local teamName = guiGridListGetItemText ( grid_groups, row, col ) triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(), teamName ) end end end ) --Select Skin y Spawn addEventHandler ( "onClientGUIClick", root, function ( button ) if button == "left" then if source == spawn_button then local row, col = guiGridListGetSelectedItem ( grid_skins ) local skinName = guiGridListGetItemText ( grid_skins, row, col ) triggerServerEvent ( "onPlayerChooseSkin", getLocalPlayer(), skinName ) end end end ) function test(player) guiSetVisible ( ventana , false ) guiSetVisible ( spawn_button , false ) guiSetVisible ( info , false ) showCursor ( false ) end addEventHandler("onClientPlayerSpawn",localPlayer,test) function test2(localPlayer) guiSetVisible ( ventana , true ) guiSetVisible ( spawn_button , true ) guiSetVisible ( info , true ) showCursor ( true ) end addEventHandler("onClientPlayerWasted",localPlayer,test2) addEvent ( "onPlayerChooseTeam" , true ) addEventHandler ( "onPlayerChooseTeam" , root , function ( teamName ) local team = getTeamFromName ( teamName ) setPlayerTeam ( source , team ) end ) server: function createteam () teamMedico = createTeam ( "Mexicans", 255, 0, 0 ) end addEventHandler("onResourceStart, getElementRoot(), createteam) function spawnMexi ( source, weapon, ammo) local teamName = guiGridListSetItemText ( source, row, 1 ) if ( teamName == "Mexicans 1" ) then setPlayerTeam ( source, teamMedico ) local x,y,z x = 414 y = 2536 z = 19 spawnPlayer ( source, x,y,z ) fadeCamera(source, true) takeAllWeapons ( source ) setElementHealth ( source, 100 ) setPlayerNametagColor ( source, 255,222,173 ) setPlayerSkin ( source, randInt(18, 26) ) setPlayerArmor ( source, 0 ) triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName ) end addEvent("onPlayerChooseTeam", true) addEventHandler("onPlayerChooseTeam", getRootElement(), spawnMexi) osea use lo mismo q en tu spawn algo anda mal? no se q pasa
  20. function greetingHandler ( playerSource ) jugador = localPlayer if getElementModel(jugador) == 303 then outputChatBox("Usted ya está en este trabajo!", jugador) else setElementModel(jugador, 303) outputChatBox("Bienvenido al trabajo de Taxista!", jugador) end end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler )
  21. mira intenta esto local theTeam = getTeamFromName ( teamName ) if ( theTeam == "LoQestaGridList" ) then setPlayerTeam ( player , theTeam ) ps creo e.e
  22. estube intentando.. serverside: teamMedico = createTeam ( "Medic", 255, 0, 0 ) function spawnMedic ( source, weapon, ammo) local teamName = guiGridListSetItemText ( source, row, 1 ) if ( teamName == "Police 1" ) then setPlayerTeam ( source, teamMedico ) local x,y,z x = 414 y = 2536 z = 19 spawnPlayer ( source, x,y,z ) fadeCamera(source, true) takeAllWeapons ( source ) setElementHealth ( source, 100 ) setPlayerNametagColor ( source, 255,222,173 ) setPlayerSkin ( source, randInt(18, 26) ) setPlayerArmor ( source, 0 ) end addEvent("onPlayerChooseSkin", true) addEventHandler("onPlayerChooseSkin", getRootElement(), spawnMedic)
  23. creo q no puedes llamar la function igual q lo q pondras en addEventHandler
×
×
  • Create New...