[Ajuda] Getando FPS do player
#5

pawn Код:
// inicio
static pFPS[MAX_PLAYERS], pDrunkLevelLast[MAX_PLAYERS];  // FPS

public OnPlayerUpdate(playerid)
{
    new drunknew = GetPlayerDrunkLevel(playerid);
    if(drunknew < 100) return SetPlayerDrunkLevel(playerid, 2000);
    else
    {
        if (pDrunkLevelLast[playerid] != drunknew)
        {
            new wfps = pDrunkLevelLast[playerid] - drunknew;
            if ((wfps > 0) && (wfps < 200)) pFPS[playerid] = wfps;
            pDrunkLevelLast[playerid] = drunknew;
        }
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    pDrunkLevelLast[playerid] = 0;
    pFPS[playerid] = 0;
    return 1;
}


// variavel pra getar fps -
pFPS[playerid]
By BlackDonelly
Reply


Messages In This Thread
Getando FPS do player - by Gleisson_. - 02.09.2012, 19:01
Re: Getando FPS do player - by LeLeTe - 02.09.2012, 19:02
Re: Getando FPS do player - by Gleisson_. - 02.09.2012, 19:03
Re: Getando FPS do player - by @Riichard - 02.09.2012, 19:03
Re: Getando FPS do player - by Tony_Rodrigues - 02.09.2012, 19:05
Re: Getando FPS do player - by Gleisson_. - 02.09.2012, 19:06
Respuesta: Getando FPS do player - by Digao - 02.09.2012, 19:10
Re: Getando FPS do player - by paulor - 02.09.2012, 19:43
Re: Getando FPS do player - by GhosT_[] - 02.09.2012, 20:29
Re: Getando FPS do player - by Gleisson_. - 03.09.2012, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)