2021-04-04, 09:00 AM
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.