mehmet

Members
  • Content Count

    119
  • Joined

  • Last visited

Community Reputation

6 Neutral

1 Follower

About mehmet

  • Rank
    Sucka
  • Birthday 16/05/1996

Details

  • Location
    Moscow

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. а ты знаешь как добиться такого эффекта? свечения
  2. а там кристал визуально такой же как и на ccd? Просто у ccd кристал имеет вокруг свечение
  3. Well, I have a shader. Can you show an example script? (I found the script, but the code is closed) and you can still like to add lighting to the turn signal? (as on the screen)
  4. Hello, how to make a system of turn signals? (using car textures)
  5. stop, which method is better? addEventHandler("onPlayerChat", getRootElement(), function(message) cancelEvent() local x, y, z = getElementPosition(source) local radius = createColSphere(x, y, z, 15) -- see the message in 15m radius local nearPlayers = getElementsWithinColShape(radius, "player") destroyElement(radius) for _, player in ipairs(nearPlayers) do if getElementDimension(player) == getElementDimension(source) then outputChatBox(getPlayerName(source)..": #FFFFFF"..message, player, 255, 255, 255, true) end end end) OR -- define our chat radius local chatRadius = 20 --units -- define a handler that will distribute the message to all nearby players function sendMessageToNearbyPlayers(message, messageType) -- we will only send normal chat messages, action and team types will be ignored if messageType == 0 then -- get the chatting player's position local posX1, posY1, posZ1 = getElementPosition(source) -- loop through all player and check distance for id, player in ipairs(getElementsByType("player")) do local posX2, posY2, posZ2 = getElementPosition(player) if getDistanceBetweenPoints3D(posX1, posY1, posZ1, posX2, posY2, posZ2) <= chatRadius then outputChatBox(message, player) end end end -- block the original message by cancelling this event cancelEvent() end -- attach our new chat handler to onPlayerChat addEventHandler( "onPlayerChat", getRootElement(), sendMessageToNearbyPlayers )
  6. Is this method slow? createColSphere List of players available on the client? (Список игроков можно получить на клиенте?)
  7. And on the client side, you can? Почему похоронит? И мог бы объяснить на какой части это лучше делать? на клиентской или серверной
  8. Thank you, but I decided to use an image.😕
  9. I make the menu. If rendering 100-200 rectangle is a lot? (1 button = 9 Rectangle)
  10. Hello, I want to create a button with rounded corners. Pictures will not work. I need to create a dynamic button. How to do it right? and well optimized. They say this is a bad way for server performance. + visible pixels ( local x,y = guiGetScreenSize() local sx,sy = 400,200 local size = 45 -- pixel size to cut function performRendering() for i=1,sy do local dg = math.min(i,size) -- limit it to the size if i > sy-size then dg = sy-math.max(sy-size,i) -- limit it to the size for bottom parts end local csx = sx-1/dg*size -- use our lovely y = k/x function dxDrawRectangle(x/2-csx/2,y/2-sy/2+i,csx,1,tocolor(0,0,0,200)) -- draw the magic at the middle end end addEventHandler("onClientRender",getRootElement(),performRendering)
  11. mehmet

    Gui Theme

    Hello, By default everyone has a default theme. Can the lighter black theme be installed on the default server? if something like "setTheme" 😃
  12. I thought it was okay.))