• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How do i get a player FPS?
#1
How do i get a player FPS with GetPlayerDrunkLevel ??
  Reply
#2
(2021-04-04, 07:46 AM)Cosmic Wrote: How do i get a player FPS with GetPlayerDrunkLevel ??



Hey. Take a look at this.



https://github.com/PatrickGTR/gta-open/b...yer.inc#L6
  Reply
#3
Code:
stock GetPlayerFPS(playerid) return pFPS[playerid];

new pDrunkLeveLast[MAX_PLAYERS];



    new drunknew;

    drunknew = GetPlayerDrunkLevel(playerid);

    if (drunknew < 100) {

        SetPlayerDrunkLevel(playerid, 2000);

    } else {



        if (pDrunkLevelLast[playerid] != drunknew) {



            new wfps = pDrunkLevelLast[playerid] - drunknew;



            if ((wfps > 0) && (wfps < 400))

            pFPS[playerid] = wfps;



            pDrunkLevelLast[playerid] = drunknew;

        }



    }

and call GetPlayerFPS(playerid); where you have to.
  Reply
#4
Works. Thanks
  Reply


Forum Jump: