getfps command? - 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: getfps command? (
/showthread.php?tid=446697)
getfps command? -
Hitman-97- - 26.06.2013
Hi guys, can you please tell me how to make this command? /getfps (ID)
It gets the current fps of the chosen player
Re: getfps command? -
MP2 - 26.06.2013
******.
Re: getfps command? -
Hitman-97- - 26.06.2013
I ******d, but couldn't find. I only found the method with drunklevel calculations, but I don't want to go so deep, just a simple /getfps command
I think in 0.3x there is something like GetPlayerFPS(playerid) not really sure.
And MP2, please if you don't want to help don't even post.
Re: getfps command? -
kaisersouse - 26.06.2013
I ******d "samp getfps" and found what you are looking for within 10 seconds.
Re: getfps command? -
[FSaF]Jarno - 26.06.2013
Quote:
Originally Posted by Hitman-97-
I ******d, but couldn't find. I only found the method with drunklevel calculations, but I don't want to go so deep, just a simple /getfps command
|
That's exactly how you count a player's fps. The SetPlayerDrunkLevel article on the wiki says quite clearly how to do it. Set a player's drunk level to 100 (since the max FPS is 90 in samp (frame limiter)), set a 1 second timer and check his drunk level. If it is 50 after 1 second, it means his FPS is 50. If it's 30, it means his fps is 70. The SetTimer functions on SA:MP are way off tho, and you will get a +-0.05 second inaccuracy. (there is a fix for that)
Quote:
Originally Posted by Hitman-97-
there is something like GetPlayerFPS(playerid) not really sure.
|
No there isn't, and if there would be, why are you asking? It's not rocket science to make a command that tells you what some function returns.
Quote:
Originally Posted by Hitman-97-
And MP2, please if you don't want to help don't even post.
|
I literally just had to ****** "get player fps samp" to get into the wiki article, so i guess MP2's post was quite useful.
Re: getfps command? -
MP2 - 26.06.2013
Quote:
Originally Posted by Hitman-97-
I ******d, but couldn't find. I only found the method with drunklevel calculations, but I don't want to go so deep, just a simple /getfps command
|
#define lazy
Quote:
Originally Posted by Hitman-97-
And MP2, please if you don't want to help don't even post.
|
I'll post wherever and whenever I want, thanks.