new
g_pDrunkLevelLast[MAX_PLAYERS],
g_pFPS[MAX_PLAYERS];
// lekérés: g_pFPS[jatekosid]
public OnPlayerUpdate(playerid)
{
new
drunknew = GetPlayerDrunkLevel(playerid);
if(drunknew < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(g_pDrunkLevelLast[playerid] != drunknew)
{
new
wfps = g_pDrunkLevelLast[playerid] - drunknew;
if(0 <= wfps <= 200)
{
g_pFPS[playerid] = wfps;
}
g_pDrunkLevelLast[playerid] = drunknew;
}
}
return 1;
}
Kurta által készített NM-SS -ben (a mostani Maxximum Freeroamban) használt FPS mérõ.