Quote:
Originally Posted by Nero_3D
The guy who wrote that rly likes pvar
pawn Код:
stock GetPlayerFPS(playerid) { new drunk = GetPlayerDrunkLevel(playerid), fps = (GetPVarInt(playerid, "DrunkLevel") - drunk); if(drunk < 100) { SetPlayerDrunkLevel(playerid, 2000); SetPVarInt(playerid, "DrunkLevel", 2000); } else { SetPVarInt(playerid, "DrunkLevel", drunk); } return fps; }
|
I tried this and it shows the FPS 2000 and it keeps changing to 0 every second like before. Do I have to use something else instead of OnPlayerUpdate?