Jump to content

๐“…“๐“‡‹๐“‚‹๐“Žก

Members
  • Posts

    621
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by ๐“…“๐“‡‹๐“‚‹๐“Žก

  1. OnClientClick IsMouseInPosition for the color here's an example local r = 255 local b = 0 local g = 0 addEventHandler("onClientRender", root, function() dxDrawLine3D ( 0, 0, 0, 0, 0, 0, tocolor ( r, b, g, alpha )) end) addCommandHandler('green', function() r = 0 b = 255 g = 0 end)
  2. I bought a laptop recently and I'm facing a problem with the game, the problem is the low fps The fps rate is between 10 to 24 and it may be less. This problem causes me problems and I feel that I do not play the game at all. I do not know if the problem is due to the capabilities of the laptop or Windows because I searched for about two months and did not find a solution. Laptop Capabilities: hp laptop 15-ra0xx processor : intel(R) Celeron(R) CPU N3060 @ 1.60GHz 1.60 GHz Ram : 4gb 64ร—bit windows : wnidows 10 pro
  3. ู…ุด ุดุงูŠู ุงุฎุทุงุก ุจุณ ุฌุฑุจ ุชุฎู„ูŠ ุงู„ุงูŠููŠู†ุช ู„ู„ุฑูˆุช ูˆุงุชุงูƒุฏ ุงู† ููŠู‡ ุญุฏ ุจูŠุฏู…ุฌูƒ ุงูˆ ุงู†ูƒ ูˆู‚ุนุช ู…ู† ููˆู‚ ุณูŠูƒู„ ูˆุงู†ุช ุจุชุฌุฑุจ ุงู„ุณูƒุฑุจุช ู„ุงู†ูƒ ุญุงุทุท ุชุญู‚ู‚ ุนู„ูŠ ุงู„ุงุชุงูƒุฑ
  4. .ุงูŠู‡ ุนู„ุงู‚ุฉ ุงู„ุชุงูŠู…ุฑ ุจุงู„ุฏุงุชุง ุจุงู„ู…ูˆุถูˆุน ู„ูˆ ุชุนุฑุถ ู…ุญุงูˆู„ุชูƒ ูŠูƒูˆู† ุฃุณู‡ู„
  5. in the lines 8 and 9 change getLocalPlayer() with getElementsByType('player')
  6. sim vocรช pode fazer isso usando: FileOpen : file fileOpen ( string filePath [, bool readOnly = false ]) filePath : ": resourceName / path". 'resourceName' รฉ o nome do recurso em que o arquivo estรก e 'path' รฉ o caminho do diretรณrio raiz do recurso para o arquivo. Por exemplo, se houver um arquivo chamado 'coolObjects.txt' no recurso 'objectSearch', ele poderรก ser aberto a partir de outro recurso da seguinte maneira: fileOpen (": objectSearch / coolObjects.txt"). Se o arquivo estiver no recurso atual, apenas o caminho do arquivo serรก necessรกrio, por exemplo fileOpen ("coolObjects.txt"). FileRead FileWrite FileClose
  7. ุญู…ู„ ุณูƒุฑุจุช ูˆุดูˆู ุจูŠุดุชุบู„ ุงุฒุงูŠ ูˆุงุชุนู„ู… ู…ู†ู‡ ู„ุงู† ุตุนุจ ูˆุงุญุฏ ูŠุดุฑุญู„ูƒ ุณูƒุฑุจุช ุทูˆูŠู„ ุฒูŠ ุฏุง
  8. AddCommandHandler IsElement GetElementPosition SetElementPosition ูˆุชุญุชุงุฌ ุชุณุชุฎุฏู… OnClientRender RemoveEventHandler ุงูˆ SetTimer IsTimer KillTimer ู…ู† ุงุฌู„ ุงู„ุชุญู‚ู‚ ุงู„ู…ุณุชู…ุฑ ุงู† ูƒุงู† ู…ูˆุฌูˆุฏ ุงู„ุงุจุฌูŠูƒุช ูˆุชุบูŠุฑ ู…ูƒุงู†ู‡ ุจูˆู‚ุช ู…ุณุชู…ุฑ ุงู„ูŠ ุฃู† ุชู‚ูˆู… ุจุงู„ุบุงุก ุงู„ุชุญุฑูƒ
  9. buen trabajo hermano, has hecho un buen trabajo, pasa un buen rato
  10. addCommandHandler("lchat", function(player,cmd,...) local msg = table.concat( {...}, " " ) if msg then local x,y,z = getElementPosition(player) local name = getPlayerName(player) for k,v in ipairs(getElementsByType("player")) do local pos = Vector3(getElementPosition(v)) if getDistanceBetweenPoints3D ( x, y, z, pos.x, pos.y, pos.z ) < 20 then outputChatBox( "* "..name..": "..msg, v, 200, 250, 200, true ) end end end end ) addEventHandler("onPlayerJoin", root, function() bindKey(source, "U", "down", "chatbox", "lchat") end ) es mas facil es mรกs fรกcil a menos que cree formas de colls
  11. ยฟPor quรฉ creas coll? puedes recorrer todos los jugadores y usar GetDistanceBetweenPoints3D + al crear un objeto o una coll en el servidor de esa manera, debe usar la tabla porque si otro jugador envรญa un mensaje, la coll serรก destruida por รฉl o causarรก algunos errores
  12. ู…ู…ูƒู† ุงู„ุนูŠุจ ููŠ ุงู„ู…ุฌุณู… ู†ูุณู‡ ุฃุญูŠุงู†ุง ุงู„ู…ุดูƒู„ุฉ ุฏูŠ ุจุชุญุตู„ ุญุงูˆู„ ุชุดูŠู„ู‡ ู…ู† ุงู„ุงุชุงูƒ ูˆุชุฎู„ูŠู‡ ููŠ ู‚ุงุฆู…ุฉ CHASSIS
  13. server : local chat = 'Local' local command = 'chat' addCommandHandler(command, function(player,_,...) if not player then return end if isPlayerMuted ( player ) then return outputChatBox('you are muted!',player,255,255,0) end local arg = {...} local count = #arg if count < 1 then return outputChatBox('the messeage must be 1 line at least!',player,255,0,0) end local string = table.concat( arg, " " ) local r,b,g = getPlayerNametagColor(player) if r and b and g then outputChatBox ( '('..chat..'): '..string.format("#%.2X%.2X%.2X", r, g, b)..''..string.gsub(getPlayerName(player),'#x%x%x%x%x%x%','')..'#FFFFFF : '..string, root, 255,255,255, true ) else outputChatBox ( '('..chat..'): '..string.gsub(getPlayerName(player),'#x%x%x%x%x%x%','')..' : '..string, root, 255,255,255, true ) end end)
  14. LocalChat Vea este recurso y vea cรณmo funciona
  15. DxDrawProgressBar veja esta funรงรฃo รบtil e verifique os cรณdigos de operaรงรฃo como funciona
  16. you can create your custom chat with : AddCommandHandler GetPlayerName OutputChatBox make the script in server and the message will appear to all players
  17. vocรช pode usar a renderizaรงรฃo do cliente e verificar se o mouse estรก na posiรงรฃo, para mudar de cor, aqui estรก um exemplo local sX, sY = guiGetScreenSize() local r, b, g, alpha = 0, 0, 0, 0 local visible = false local state function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end function draw() if visible = true then dxDrawRectangle(sX * 0.0154, sY * 0.3008, sX * 0.2284, sY * 0.3242, tocolor(r, b, g, alpha)) if isMouseInPosition(sX * 0.0154, sY * 0.3008, sX * 0.2284, sY * 0.3242) then r,b,g = 255,0,0 else r,b,g = 0,0,0 end end end function fadeIN_FadeOut() if state == 'increase' then if alpha < 1 then alpha = alpha + 5 end if alpha > 254 then removeEventHandler('onClientRender',fadeIN_FadeOut) end elseif state == 'decrease' then if alpha > 254 then alpha = alpha - 5 end if alpha < 1 then removeEventHandler('onClientRender',fadeIN_FadeOut) end end end bindKey('F2','down', function() if visible == false then visible = true addEventHandler("onClientRender", root, draw) addEventHandler("onClientRender", root, fadeIN_FadeOut) state = 'increase' else visible = false removeEventHandler("onClientRender", root, draw) addEventHandler("onClientRender", root, fadeIN_FadeOut) state == 'decrease' end end)
  18. math.ceil (x) Returns the smallest integer larger than or equal to x. math.floor (x) Returns the largest integer smaller than or equal to x. both of them are better use what you need
  19. GetAccountData SetAccountData OnPlayerLogin GivePlayerMoney
  20. math.floor will returns a less value if the speed 100 it will display 99
×
×
  • Create New...