Jump to content

somebody1997

Members
  • Posts

    5
  • Joined

  • Last visited

somebody1997's Achievements

Vic

Vic (3/54)

0

Reputation

  1. but when i do that it goed back to the player but then the camera does really weird. You cant move around the player with mouse.
  2. Hello, Pls help me with my problem. I want that when i open my window that it goes to a specific view. This works fine, but now the problem. When i want that the view returns to the player then it dont work. Can someone help me, pls? function dxCreateNewsWindow () dxDrawImage(369.0,135.0,607.0,433.0,"background.png",180.0,0.0,0.0,tocolor(50,50,50,255),false) dxDrawImage(369.0,170.0,607.0,410.0,"background.png",180.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText(" VG",375.0,139.0,905.0,165.0,tocolor(0,221,255,255),1.0,"bankgothic","left","center",false,false,false) dxDrawText("The - News.",375.0,139.0,905.0,165.0,tocolor(90,90,90,255),1.0,"bankgothic","left","center",false,false,false) dxDrawText(newsText,406.0,201.0,942.0,547.0,tocolor(255,255,255,255),1,"clear","left","top",false,false,false) end function createViewOpen () setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end local back = getCameraMatrix() local localPlayer = getLocalPlayer () function backToView () setCameraTarget() end local shown = false function showNewsWindow() if shown == false then addEventHandler("onClientRender", root, dxCreateNewsWindow) addEventHandler("onClientRender", root, createViewOpen) shown = true else shown = false removeEventHandler("onClientRender", root, dxCreateNewsWindow) addEventHandler("onClientRender", root, backToView) end end
  3. I just dont know what im doing wrong. function displayTab(number) if number == 1 then showInformationWindow () end else if number == 2 then showCommandWindow () end Thanks for an reply
  4. I can let the panel appear but when i want that the panel disappears then nothing happens? What do I wrong ? Please, help me local sWidth, sHeight = guiGetScreenSize() local px = sWidth/800 local py = sHeight/600 function Messenger_On_Render () dxDrawText("*****",415.0*px,152.0*py,565.0*px,168.0*py,tocolor(0,221,255,255),0.9*py,"beckett","center","center",false,false,false) dxDrawImage(369.0,135.0,607.0,433.0,"background.png",180.0,0.0,0.0,tocolor(50,50,50,255),false) dxDrawImage(369.0,170.0,607.0,410.0,"background.png",180.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("*****",785.0,583.0,975.0,610.0,tocolor(0,221,255,255),0.9,"beckett","left","top",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(0,221,255,255),1.0,"bankgothic","left","center",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(90,90,90,255),1.0,"bankgothic","left","center",false,false,false) end local shown = false function Messenger_Open_or_Close () if (shown == true) then showCursor (false) removeEventHandler("onClientRender",getRootElement(), Messenger_On_Render) elseif (shown == false) then showCursor (true) addEventHandler("onClientRender",getRootElement(), Messenger_On_Render) end end addCommandHandler ("chat", Messenger_Open_or_Close ) bindKey( "F2", "down", Messenger_Open_or_Close ) The * Are just the text what i want to have in it. That can be fixed by myself
×
×
  • Create New...