Recommended Posts

Hello gentlemen, I would like your help.
How do I set max_fps to 250 so that when a player comes in with more kicks and a message to set to 250?

Share this post


Link to post
Share on other sites

https://github.com/promod/promod4

Promod has a way to show the map image over your screen with an annoying ak sound loop to force you to use 40-250 range, you can find that in ui_mp/hud.menu

Also you can check the DVAR checker code in promod/. folder

Should serve for all your needs. But also note that there are still ways to avoid that.

Share this post


Link to post
Share on other sites

Okay, unfortunately I don't use promod. I have a mod that added some weapons running. I thought maybe you have a plugin that you can adapt. but thanks

 

Share this post


Link to post
Share on other sites

sorry guys reopen but I need a plugin that returns the fps range of the player. If it is a script I need help where I install
I use a self-created mode.

Share this post


Link to post
Share on other sites

You can grab it from the promod, its open source, its not hard to implement it with any mod.

As for the fps you can use cod4x built in function GetCountedFPS()

fps = GetCountedFPS();

somehudelement.setText(fps);     

You can use something like this.

Share this post


Link to post
Share on other sites
4 hours ago, Kreator said:

You can grab it from the promod, its open source, its not hard to implement it with any mod.

As for the fps you can use cod4x built in function GetCountedFPS()

fps = GetCountedFPS();

somehudelement.setText(fps);     

You can use something like this.

Friend, the problem that I don't know how to do any of this !! where I implement this function! help me with a tutorial

Share this post


Link to post
Share on other sites

I can't give you a tutorial for that without knowing what you need to use it for, its a simple variable that stores counted fps from the player.

fps = GetCountedFPS();

This example above stores the counted fps in "fps" and then you have to use it where you need it in the code.

Share this post


Link to post
Share on other sites

No, b3 is just an adminmod, you can make a command for it or add custom parsing if you want b3 to do it instead of the mod, but mod is more convenient.

Share this post


Link to post
Share on other sites
On 18/03/2020 at 08:47, Kreator said:

Não posso lhe dar um tutorial para isso sem saber para que você precisa usá-lo, é uma variável simples que armazena fps contados do player.

fps = GetCountedFPS ();

Este exemplo acima armazena os fps contados em "fps" e você deve usá-lo onde precisar no código.

hello, my mod is ready and I don't have backups anymore, I don't know where I can implement the code. I tried the above code on the server console but it doesn't work.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.