Jump to content

sausage123

Members
  • Posts

    6
  • Joined

  • Last visited

sausage123's Achievements

Vic

Vic (3/54)

0

Reputation

  1. DM click is play DM Map to player ?
  2. problem is Invaild ID... element = engineLoadCOL ( "rokko10.col", id ) element = engineLoadDFF ( "rokko00.dff", id )
  3. My Problem is dxDrawRectangle don't click
  4. local screenW, screenH = guiGetScreenSize() function window() Kicks = isMouseWithinRangeOf(screenW * 0.6676, screenH * 0.1719, screenW * 0.0974, screenH * 0.0495) if Kicks then dxDrawRectangle(screenW * 0.6676, screenH * 0.1719, screenW * 0.0974, screenH * 0.0495, tocolor(255, 255, 255, 255), false) else dxDrawRectangle(screenW * 0.6676, screenH * 0.1719, screenW * 0.0974, screenH * 0.0495, tocolor(255, 167, 15, 255), false) end end addEventHandler("onClientRender", root, window) function click(playerSource) kick = isMouseWithinRangeOf(screenW * 0.6676, screenH * 0.1719, screenW * 0.0974, screenH * 0.0495) if kick then triggerServerEvent("KicKPlayer", getLocalPlayer()) end end addEventHandler("onClientClick",getRootElement(),click) function isMouseWithinRangeOf(psx,pssx,psy,pssy) if not isCursorShowing() then return false end local cx,cy = getCursorPosition() cx,cy = cx*screenW,cy*screenH if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then return true,cx,cy else return false end end
×
×
  • Create New...