Jump to content

[REL] Shader Panel


HunT

Recommended Posts

Shader Panel By PRO|Hunterix

This panel active the shader water and shader vehicle or nothing on player join. (Better in Race Mode)

---------------------------------------

Download Here https://community.multitheftauto.com/index.php?p= ... ls&id=3011

Panel By PRO|Race Community

Main Panel

86m.png

Water enable effect

87m.png

Vehicle enable effect

88m.png

Close effect

92m.png

Warning : Many kids download my scripts and open the local server with tag PRO| (example PRO|Race 3.0 facepalm)

The original server is : PRO|Race 24/7 1.1

Tnx For Download.

Link to comment

Tnx :D

60% of players in mta lag with shader effect.With this panel is possible select or no.

My idea is onClientGuiClick check the fps. Example under 20 fps dont enable the function . . But is very hard for me :D i'm little scripter.

(sorry for bad english i reply with telephone)

Link to comment

you need a way to detect fps?

i can help you in that case

EDIT: here it is:

  
local frames,fps,lastsec=0,0,0 
  
addEventHandler("onClientRender",getRootElement(),function() 
  local frameticks=getTickCount() 
  frames=frames+1 
  if frameticks-1000>lastsec then 
    local prog=(frameticks-lastsec) 
    lastsec=frameticks 
    fps=frames/(prog/1000) 
    frames=fps*((prog-1000)/1000) 
  end 
end) 

Link to comment
you need a way to detect fps?

i can help you in that case

EDIT: here it is:

  
local frames,fps,lastsec=0,0,0 
  
addEventHandler("onClientRender",getRootElement(),function() 
  local frameticks=getTickCount() 
  frames=frames+1 
  if frameticks-1000>lastsec then 
    local prog=(frameticks-lastsec) 
    lastsec=frameticks 
    fps=frames/(prog/1000) 
    frames=fps*((prog-1000)/1000) 
  end 
end) 

LoL realy Tnx.

But This function work under 20 fps?

Ok test and add else outputChatBox.

Link to comment

this should work for all fps, but when fps drop from high to low, or low to high, for 1 sec there can be little inaccuracy(because it uses fps of last frame when compensating offset from 1sec between last frame that fps got calculated, and this frame).

to check fps just get fps variable.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...