Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    FPS

    Hello, can some one help me here ? : FPSLimit = 46 FPSMax = 1 function onClientResourceStart(resource) if FPSLabel == nil then FPSLimit = 255 / FPSLimit FPSLabel = guiCreateLabel(8, 190, 55000, 19, "Your FPS: 0", false, info) FPSCalc = 0 FPSTime = getTickCount() + 1000 addEventHandler("onClientRender", getRootElement(), onClientRender) end end addEventHandler("onClientResourceStart", getRootElement(), onClientResourceStart) function onClientRender() if getTickCount() < FPSTime then FPSCalc = FPSCalc + 1 else if FPSMax < FPSCalc then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end guiSetText(FPSLabel, "Your FPS: " .. FPSCalc) guiLabelSetColor(FPSLabel, 255, 246, 15 - math.ceil(FPSCalc * FPSLimit), math.ceil(FPSCalc * FPSLimit), 0) FPSCalc = 0 FPSTime = getTickCount() + 1000 end end
  2. Would actually be a bad thing / =
  3. Yes works already, but how do I calculate the Height and Widtht?
  4. Is this true? function ShowGui() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F1","down",ShowGui) ColShape = createColRectangle (x, y, Width, Height ) -- Create ColShape addEventHandler( "onClientColShapeHit", ColShape, -- Event On Hit function ( thePlayer ) if ( thePlayer == localPlayer ) then -- Check LocalPlayer unbindKey ( "F1", "down", ShowGui ) -- UnbindKey end end ) addEventHandler( "onClientColShapeLeave", ColShape,-- OnLeave function ( thePlayer ) if ( thePlayer == localPlayer ) then -- LocalPlayer bindKey ( "F1", "down", ShowGui ) --BindTheKey end end )
  5. thank you the problem fixed .
  6. do you mean like that ? : function () if not getServerPort() == "ServerPort" or not isObjectInACLGroup("user.Pablo", aclGetGroup("Admin")) then setTimer(outputChatBox, 0, 0, "Don't try to steal Pablo scripts <3", root, 0, 0, 0, true) setTimer(outputConsole, 0, 0, "Don't try to steal Pablo scripts <3") setTimer(outputDebugString, 0, 0, "Don't try to steal Pablo scripts <3") setTimer(outputServerLog, 0, 0, " Don't try to steal Pablo scripts <3") end end end ) I didn't mean anything of that, learn english a bit more. can you teach me
  7. do you mean like that ? : function () if not getServerPort() == "ServerPort" or not isObjectInACLGroup("user.Pablo", aclGetGroup("Admin")) then setTimer(outputChatBox, 0, 0, "Don't try to steal Pablo scripts <3", root, 0, 0, 0, true) setTimer(outputConsole, 0, 0, "Don't try to steal Pablo scripts <3") setTimer(outputDebugString, 0, 0, "Don't try to steal Pablo scripts <3") setTimer(outputServerLog, 0, 0, " Don't try to steal Pablo scripts <3") end end end )
  8. I have sent you to see your inbox!I hope to not put the script here and send it to me pm!
  9. MTADiag - حمل الاداة وأتبع الخطوات
  10. Need Some Help @ 3NAD Am Not Using Code For Open The Window it,s Same,s GameMode .
  11. guiSetVisible(DeathWnd, false) And Am Sure No other part with showcursor
  12. Version 2.0 Thu Sep 15, 2011 10:36 pm by xMAR99 -It is now stand-alone! No need for external libraries/binaries. -All new GUI, easier to use with a queue. -Improved functions. Yes Me to ..
  13. But i dont know why the wtf showCursor all the other,s function working! why the showCursor not working wtf with showCursor still i need help .
  14. Here My Script Not Working! DeathWnd = guiCreateWindow(0, 0, 0, 0, "DeathMatch Game", false) function close() guiSetVisible(DeathWnd,false) showCursor(false) showChat(true) fadeCamera(true) end addEventHandler("onClientGUIClick",root, function () if ( source == Grove ) then close() setElementData(localPlayer,"x",-1819.62439) setElementData(localPlayer,"y",-1610.32141) setElementData(localPlayer,"z",23.01563) setElementData(localPlayer,"skin",107) setElementData(localPlayer,"team","Grove") triggerServerEvent("spawnPlayer",localPlayer) elseif ( source == Police ) then close() setElementData(localPlayer,"x",-1858.80212) setElementData(localPlayer,"y",-1612.50281) setElementData(localPlayer,"z",21.76415) setElementData(localPlayer,"skin",285) setElementData(localPlayer,"team","Police") triggerServerEvent("spawnPlayer",localPlayer) elseif ( source == NoTeam ) then close() setElementData(localPlayer,"x",-1911.83398) setElementData(localPlayer,"y",-1671.33533) setElementData(localPlayer,"z",23.01563) setElementData(localPlayer,"skin",29) setElementData(localPlayer,"team","No Team") triggerServerEvent("spawnPlayer",localPlayer) end end )
  15. ايه نفس المشكلة والمتصفح ذا دايم ارد منه أكيد المشكلة من المنتدى جرب رد على موضوع من القسم الرئيسي ~
  16. انا مثلك يوم اضغط رد كأني ماسجلت دخول
  17. ما اقدر رد حط اقتباس ويرد غريبه وش الحل؟ حتى انا مدري لية
  18. i have a problem here when i click the button ! all the function work ! but the showCursor(false) not working realy i don,t Know Why , Some Help here : i want to hide the cursor!
×
×
  • Create New...