Jump to content

[REL] Shader Panel


HunT

Recommended Posts

Posted

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.

Posted

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)

Posted

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) 

Posted
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.

  • MTA Team
Posted

This doesn't get the current FPS, but gets the FPS that occured on the previous frame (generally a fraction of a second)

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...