Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. Bug, it works the images dont get out of rectangle, it looks horrible at top, it looks like duplicated .-.
  2. I'll already changed rectangle code, it reads the code up to down, so, if you want something on the front, just put it on last lines .
  3. Put the code of the black rectangle down all script stull, like this local x,y = guiGetScreenSize() local screen = dxCreateRenderTarget(x*0.33,y*0.32,true) local start = getTickCount() addEventHandler('onClientRender',root,function() dxSetRenderTarget(screen) local ax,ay = x*0.33,y*0.32 local fx,fy = x*0.373,y*0.36 local now = getTickCount() if now - start > 3000 then start = getTickCount() end local elapsed = now - start local progress = elapsed / 3000 local sx = interpolateBetween(0, 0,0,ax*0.2,0,0,progress,"Linear") dxDrawRectangle(0, 0, ax, ay,tocolor(100,100,100,180)) dxSetRenderTarget() dxDrawImage(x*0.373,y*0.36,x*0.33,y*0.32,screen,0,0,0,tocolor(255,255,255,255),true) dxDrawRectangle(x*0.373,y*0.33, x*0.33, y*0.029,tocolor(50,50,50,255)) end,true,"high+6") dxDrawRectangle(ax*0.2+fx, ay*0.5+fy, ax*0.2,ay*0.05,tocolor(0,0,0,255),true)
  4. Scroll, successfull ! Dissapear when leave rectangle, fail.... The code: local x, y = guiGetScreenSize() local myRenderTarget = dxCreateRenderTarget(732, 628, true) local offset = 0 function lobby() dxDrawText("Fast Fucking War Multi-Room", 7, 9, 372, 55, tocolor(255, 158, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) if myRenderTarget then ---Start using render target.... dxSetRenderTarget( myRenderTarget ) ---Start drawing on it. dxDrawRectangle((x - 732) / 2, (y - 628) / 2, 732, 628, tocolor(0, 0, 0, 168), false) dxSetRenderTarget() --Stop Drawing on it. --//Draw inner background... dxDrawImage(0, 0, x, y, ":guieditor/images/bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) --//Render target, suposes when images get out from here, will dissapear dxDrawImage(146, 70, 732, 628, myRenderTarget, 0, 0, 0, tocolor(255, 255, 255, 255), false) --//Draw the rest of it. dxDrawImage(230, 80+offset, 564, 95, ":guieditor/images/deathmatch.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(230, 200+offset, 564, 95, ":guieditor/images/oldschool.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(230, 320+offset, 564, 95, ":guieditor/images/derby.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(230, 440+offset, 564, 95, ":guieditor/images/hunter.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(230, 560+offset, 564, 95, ":guieditor/images/shooter.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) --//Scrolling bar.... dxDrawRectangle(878, 70, 22, 530, tocolor(68, 68, 68, 255), false) end end addEventHandler("onClientRender", root, lobby) function scrollUP() offset = offset - 20 end function scrollDOWN() offset = offset + 20 end bindKey("mouse_wheel_up","down",scrollUP) bindKey("mouse_wheel_down","down",scrollDOWN)
  5. So should create a render target, and draw the image/rectangle over it? Can you make me an example with it?
  6. On scroll up i should use offset = offset + --what i want to increment no? But if get outs from a window, make it dissapear? (Last ddude)
  7. Hey, can somebody explain me how to scscroll it, as i understand i need to make just a part visible but how to make that? (Sorry for asking this again)
  8. You will need: bindKey setPlayerTeam spawnPlayer giveWeapon setCameraTarget setCameraMatrix You can use setCameraMatrix when join, set in to a place, and draw a text, that says something like press: "F1" for team x or "F2" for team y use spawnPlayer, giveWeapon on a function for spawning the player at base of team x or y, and you will use bindKey to that function.
  9. Im not gonna delete it .-., but what evah u think...
  10. And if i need to save multiple data, its posibble use it on same dbExec??
  11. So, instead of accountname can i use player forum id?
  12. Hey all sorry for beeing selfish on last post.. I have a problem saving player data, when he quit, this suposes to update their data on mysql table. But this updates, all the table values, why?? or how to set just update player row? function server.logout( thePlayer ) if ( thePlayer ~= "" ) then if ( getElementData( thePlayer, "Connection" ) == 1 ) then local save = dbQuery(databaseINFO.connection, "UPDATE ffw_users SET IngameName= ?" , getPlayerName( thePlayer ) ) -- Current InGame Name dbFree( save ) end end end addEventHandler("onPlayerQuit", getRootElement(), function() server.logout( source ) end )
  13. spaik, you have no problems on "dm" maps cause are old maps , if where new maps, could be but what ever, your solution, its the only that can work...
  14. I added source to the function, but doesnt show the notification .-. why?
  15. Hey im gotting problems with triggering this events, those are on server side: *Code removed.
  16. Hey, it its possible to make when somebody wrote something on the forum shoutbox, appear on the game-chat, and when a player in-game chats, appear on forum shoutbox? It uses mysql...any ideas?
  17. Just create an simple script, with moveObject and InterpolateBetween ??
  18. How to output just for killer and source??. Output to the killer something like: You have killed: And to source, you have been killed by:... How?
  19. Hey, how to get the name of the player you killed you on dd? onClientVehicleCollision gets me a userdata...
×
×
  • Create New...