Jump to content

-ffn-python

Members
  • Posts

    82
  • Joined

  • Last visited

Everything posted by -ffn-python

  1. Oh Thanks. Map Finish 1st which how points I can give ??
  2. Well. Can you help I'm new in this Programming
  3. Shows as Winning Number 0 New Code. local screenW, screenH = guiGetScreenSize() function Test(kazanma) local Nick = "PlayerNick:"..getPlayerName(localPlayer) local Test = "MapsWin:"..tostring(kazanma) dxDrawRectangle(screenW * 0.2709, screenH * 0.1966, screenW * 0.4458, screenH * 0.5247, tocolor(0, 0, 0, 179), false) dxDrawText("PLAYER STATS SYSTEM BY PYTHON", screenW * 0.2826, screenH * 0.1966, screenW * 0.6918, screenH * 0.2357, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(Test, screenW * 0.2753, screenH * 0.3164, screenW * 0.5322, screenH * 0.3529, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(Nick, screenW * 0.2753, screenH * 0.2799, screenW * 0.5322, screenH * 0.3164, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, Test) addEvent("onClientPythonStats", true ) addEventHandler("onClientPythonStats", root, Test) -- SERVER SIDE function hello() setElementData(getLocalPlayer(),"wins", getElementData(getLocalPlayer(),"wins") + 1) end addCommandHandler("givewins",hello) My old Code. Client.lua local screenW, screenH = guiGetScreenSize() addEvent("onClientPythonStats", true ) addEventHandler("onClientPythonStats", root, Test) function Test(kazanma) local Nick = "PlayerNick:"..getPlayerName(localPlayer) local kazanma = "Maps Win:"..tostring(kazanma) dxDrawRectangle(screenW * 0.2709, screenH * 0.1966, screenW * 0.4458, screenH * 0.5247, tocolor(0, 0, 0, 179), false) dxDrawText("PLAYER STATS SYSTEM BY PYTHON", screenW * 0.2826, screenH * 0.1966, screenW * 0.6918, screenH * 0.2357, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(kazanma, screenW * 0.2753, screenH * 0.3164, screenW * 0.5322, screenH * 0.3529, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(Nick, screenW * 0.2753, screenH * 0.2799, screenW * 0.5322, screenH * 0.3164, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, Test) server.lua addEvent("onPythonStats", true) addEventHandler("onPythonStats", root, function() local kazanma = getElementData(client, "wins") triggerClientEvent(client, "onClientPythonStats", client, kazanma) end)
  4. I'm added him. , Already you give Code
  5. I think your bad english , Still not false writes Show
  6. spawnPlayer getPedOccupiedVehicle setElementData setElementDimension createVehicle
  7. My Server Destruction Derby. Winning Show
  8. addEventHandler("onClientResourceStart",root function() triggerServerEvent ("onPythonStats", localPlayer) end )
  9. Client.lua local screenW, screenH = guiGetScreenSize() addEvent("onClientPythonStats", true ) addEventHandler("onClientPythonStats", root, Test) function Test(kazanma) local Nick = "PlayerNick:"..getPlayerName(localPlayer) local kazanma = "Maps Win:"..tostring(kazanma) dxDrawRectangle(screenW * 0.2709, screenH * 0.1966, screenW * 0.4458, screenH * 0.5247, tocolor(0, 0, 0, 179), false) dxDrawText("PLAYER STATS SYSTEM BY PYTHON", screenW * 0.2826, screenH * 0.1966, screenW * 0.6918, screenH * 0.2357, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(kazanma, screenW * 0.2753, screenH * 0.3164, screenW * 0.5322, screenH * 0.3529, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(Nick, screenW * 0.2753, screenH * 0.2799, screenW * 0.5322, screenH * 0.3164, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, Test) server.lua addEvent("onPythonStats", true) addEventHandler("onPythonStats", root, function() local kazanma = getElementData(client, "wins") triggerClientEvent(client, "onClientPythonStats", client, kazanma) end)
  10. hard to write ? local bind = {State=false,KeyHere="u"} bindKey(bind.KeyHere,"down", function() if bind.State == false then addEventHandler("onClientRender", root, PanelOpen) bind.State= true else removeEventHandler("onClientRender", root, PanelClose) bind.State = false end end) Closing animation local bind = {State=false,KeyHere="u"} bindKey(bind.KeyHere,"down", function() if bind.State == false then addEventHandler("onClientRender", root, PanelOpen) bind.State= true else addEventHandler("onClientRender", root, PanelClose) bind.State = false end end)
  11. Burayı Kontrol Edermisin. local ortakveri = getAccountData(ac,"ortakveri") if getClanData(ortakveri,"isim") == "false" then
  12. I can not help if you do not take pictures.
  13. You can Upload Debugscript image ? Please Upload .
  14. local bind = {State=false,KeyHere="u"} bindKey(bind.KeyHere,"down", function() if bind.State == false then -- addEventHandler Here your code bind.State= true else -- removeEventHandler Here your code bind.State = false end end)
  15. HypexFont = dxCreateFont( "FontName.ttf", 20 ) posOne = 0 posTwo = 0 posThree = 0 posFour = 0 red = 255 green = 255 blue = 255 dxDrawText("HYPEX FONT TEST", posOne, posTwo, PosThree, posFour, tocolor(red,green,blue), 1, HypexFont)
  16. Hi Bro. Example; local theInput local textColor = tocolor(0, 0, 0, 255) local editBoxColor = tocolor(255, 255, 255, 255) addEventHandler("onClientRender", root, function() if theInput then dxDrawRectangle(395, 395, 100, 55, editBoxColor) dxDrawText(theInput, 400, 400, 90, 45, textColor) end end ) addEventHandler("onClientCharacter", root, function(theChar) theInput = theInput .. theChar end ) -- handling the backspace key: addEventHandler("onClientKey", root, function(theButton, state) if theButton == "backspace" and state == "down" then theInput = theInput:sub(1, theInput:len()-1) end end )
  17. Stolen Script. The Only Edit! https://community.multitheftauto.com/index.php?p= ... s&id=12035 DONE
  18. Already FFS-style user panel. Change Server Name
×
×
  • Create New...