• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How do i get a player FPS?
#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


Messages In This Thread
How do i get a player FPS? - by Cosmic - 2021-04-04, 07:46 AM
RE: How do i get a player FPS? - by ImOver - 2021-04-04, 08:56 AM
RE: How do i get a player FPS? - by destiezk - 2021-04-04, 09:00 AM
RE: How do i get a player FPS? - by Cosmic - 2021-04-07, 04:11 AM

Forum Jump: