Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local sx, sy = guiGetScreenSize(); --lekéri a játékos képernyőméretét
  2. local w, h = 300, 400
  3. local w1,h1 = 295,395; --Megadja a hosszát és a magasságát {200 = hossz ; változtatható} {20 = magasság ; változtatható}
  4. local x, y = sx/2-w/2, sy/2-h/2;
  5. local szkod = exports.sw_core:getServerColor("hex")
  6. local isCasinoShow = false;
  7.  
  8. function showCasinoPanel()
  9. dxDrawRectangle(x,y,w,h,tocolor(0,0,0,70))
  10. dxDrawRectangle(x-2.5,y-2.5,w1,w2, tocolor(0,0,0,100))
  11. dxDrawText(szkod.."SwipeMTA#ffffff-Kaszinó",x,y-30,x+w,h-20+y, tocolor(255,255,255,255), 2, "arial", "center", "top",true,true,true,true)
  12. end
  13.  
  14. function casinoPanelShower()
  15. isCasinoShow = not isCasinoShow;
  16. if isCasinoShow then
  17. addEventHandler("onClientRender", root, showCasinoPanel)
  18. else
  19. removeEventHandler("onClientRender", root, showCasinoPanel)
  20. end
  21. end
  22. addCommandHandler("showcasino", casinoPanelShower);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement