Is it possible to show FPS? [NO REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is it possible to show FPS? [NO REP] (
/showthread.php?tid=335516)
Is it possible to show FPS? [NO REP] -
Dan. - 18.04.2012
I want to know, is it possible to get players FPS (frames per second) and show it in a textdraw? And if it's possible, can anyone give me an example how to do it?
Re: Is it possible to show FPS? [NO REP] -
MP2 - 18.04.2012
You can get a player's FPS using SetPlayerDrunkLevel. Every second they lose their FPS from that level, so if you set the level to currentlevel+150 (so it doesn't disturb anything) then check how much it goes down by after a second you get their FPS.
Re: Is it possible to show FPS? [NO REP] -
Dan. - 18.04.2012
Hmm.. could you give some examples or the code? Not that advanced yet.
Re: Is it possible to show FPS? [NO REP] -
tyler12 - 18.04.2012
Look at this
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Re: Is it possible to show FPS? [NO REP] -
FalconX - 18.04.2012
Quote:
Originally Posted by Dan.
Hmm.. could you give some examples or the code? Not that advanced yet.
|
Here's a tutorial on it:
https://sampforum.blast.hk/showthread.php?tid=172085
Please use the search engine
-FalconX
Re: Is it possible to show FPS? [NO REP] -
Dan. - 18.04.2012
I got that code now, but how to show it in a textdraw?
pawn Код:
format(FPSmsg,20,"FPS: %d", pFPS[i]);
I need that in textdraw, and that the textdraw woud update constantly, please help.
Re: Is it possible to show FPS? [NO REP] -
FalconX - 18.04.2012
Quote:
Originally Posted by Dan.
I got that code now, but how to show it in a textdraw?
pawn Код:
format(FPSmsg,20,"FPS: %d", pFPS[i]);
I need that in textdraw, and that the textdraw woud update constantly, please help.
|
http://pastebin.com/Ad15aN5B This is made by 0_x, you can get your requirements from here..
-FalconX