Guest Posted April 8, 2020 Share Posted April 8, 2020 السلام عليكم , في هذا الكود عندي م يشتغل الا اذا سويت شيء مثلاً هنا انا جبت داتا حق البنك عشان ابين فلوسي حق البنك لما اشغل المود من اول م يشتغل الا اذا رحت للبنك وسويت ايداع عشان يظهر كل شيء يعني اول م اشغل المود م يظهر شيء كان المود خربان لكن يوم مثلاً اروح للبنك واسوي ايداع او سحب يشتغل المود ويظهر كل شيء الكود local FPSLimit, lastTick, framesRendered, FPS = 100, getTickCount(), 0, 0 addEventHandler("onClientRender",root, function() local currentTick = getTickCount() local elapsedTime = currentTick - lastTick if elapsedTime >= 1000 then FPS = framesRendered lastTick = currentTick framesRendered = 2 else framesRendered = framesRendered + 1 end if FPS > FPSLimit then FPS = FPSLimit end local playerPing = getPlayerPing ( localPlayer ) local money = getPlayerMoney ( localPlayer ) local TheTeam = 'Police' local xP = getPlayersInTeam(getTeamFromName(TheTeam)) local teamx = 'Civilians' local xV = getPlayersInTeam(getTeamFromName(teamx)) local bank = getElementData(localPlayer, "Bank") dxDrawText(" #ff0000Civilians: "..#xV.." #bb0000| #0087f7Police: #ffffff"..#xP.." #bb0000| #00ff00FPS: #EEFFEE"..tostring(FPS).." #bb0000| #990099Ping: #EEFFEE"..playerPing.." ms #bb0000| #999999CASH: #ffffff"..money.." #bb0000| #00ffffBANK:#ffffff "..bank, 13, 996, 1280, 1020,tocolor(0,153,255,255),1,"default-bold","left","center",false,false,true,true) end ) Link to comment
!#NssoR_) Posted April 8, 2020 Share Posted April 8, 2020 local FPSLimit, lastTick, framesRendered, FPS = 100, getTickCount(), 0, 0 addEventHandler("onClientRender",root, function() local currentTick = getTickCount() local elapsedTime = currentTick - lastTick if elapsedTime >= 1000 then FPS = framesRendered lastTick = currentTick framesRendered = 2 else framesRendered = framesRendered + 1 end if FPS > FPSLimit then FPS = FPSLimit end local playerPing = getPlayerPing ( localPlayer ) local money = getPlayerMoney ( localPlayer ) local TheTeam = 'Police' local xP = getPlayersInTeam(getTeamFromName(TheTeam)) local teamx = 'Civilians' local xV = getPlayersInTeam(getTeamFromName(teamx)) local bank = getElementData(localPlayer, "Bank") or 0 dxDrawText(" #ff0000Civilians: "..#xV.." #bb0000| #0087f7Police: #ffffff"..#xP.." #bb0000| #00ff00FPS: #EEFFEE"..tostring(FPS).." #bb0000| #990099Ping: #EEFFEE"..playerPing.." ms #bb0000| #999999CASH: #ffffff"..money.." #bb0000| #00ffffBANK:#ffffff "..bank, 13, 996, 1280, 1020,tocolor(0,153,255,255),1,"default-bold","left","center",false,false,true,true) end ) Link to comment
Guest Posted April 8, 2020 Share Posted April 8, 2020 1 hour ago, !#NssoR_) said: local FPSLimit, lastTick, framesRendered, FPS = 100, getTickCount(), 0, 0 addEventHandler("onClientRender",root, function() local currentTick = getTickCount() local elapsedTime = currentTick - lastTick if elapsedTime >= 1000 then FPS = framesRendered lastTick = currentTick framesRendered = 2 else framesRendered = framesRendered + 1 end if FPS > FPSLimit then FPS = FPSLimit end local playerPing = getPlayerPing ( localPlayer ) local money = getPlayerMoney ( localPlayer ) local TheTeam = 'Police' local xP = getPlayersInTeam(getTeamFromName(TheTeam)) local teamx = 'Civilians' local xV = getPlayersInTeam(getTeamFromName(teamx)) local bank = getElementData(localPlayer, "Bank") or 0 dxDrawText(" #ff0000Civilians: "..#xV.." #bb0000| #0087f7Police: #ffffff"..#xP.." #bb0000| #00ff00FPS: #EEFFEE"..tostring(FPS).." #bb0000| #990099Ping: #EEFFEE"..playerPing.." ms #bb0000| #999999CASH: #ffffff"..money.." #bb0000| #00ffffBANK:#ffffff "..bank, 13, 996, 1280, 1020,tocolor(0,153,255,255),1,"default-bold","left","center",false,false,true,true) end ) يعطيك العافية ي نصور , يُغلق . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now