question
#1

I've searched around forums, Couldn't find a tutorial.

How do I make Min FPS Kicker?


(with explanations please)
Reply
#2

You probably meant Ping* kicker right?

Btw, here is a tutorial: https://sampforum.blast.hk/showthread.php?tid=599557
Reply
#3

No, fps kicker.

if someone for example has below lets say 40 fps for example he will get kicked
Reply
#4

This may help then: https://sampforum.blast.hk/showthread.php?tid=399297
Reply
#5

This uses JerneJL's GetPlayerFPS.

pawn Код:
#define   MIN_FPS    25 //feel free to change

new pDrunkLevelLast[MAX_PLAYERS];
new pFPS[MAX_PLAYERS];
 
public OnPlayerConnect(playerid) {
    pDrunkLevelLast[playerid]   = 0;
    pFPS[PlayerID]          = 0;
}
 
public OnPlayerUpdate(playerid) {
   
   
    new drunknew;
    drunknew = GetPlayerDrunkLevel(playerid);
   
    if (drunknew < 100) { // go back up, keep cycling.
        SetPlayerDrunkLevel(playerid, 2000);
    } else {
       
        if (pDrunkLevelLast[playerid] != drunknew) {
           
            new wfps = pDrunkLevelLast[playerid] - drunknew;
           
            if ((wfps > 0) && (wfps < 200)) {
                pFPS[playerid] = wfps;
            }

            if ((wfps > 0) && (wfps < MIN_FPS)) {
                pFPS[playerid]= wfps;
                //kick the player here
            }

            pDrunkLevelLast[playerid] = drunknew;
        }
       
    }
   
}
Reply
#6

kick a player for bad FPS is not a good u know?
sometimes someone may got freezes or drops (in mss) and they'll be kicked for this... it's bad idea.
Reply
#7

Quote:
Originally Posted by Mugala
Посмотреть сообщение
kick a player for bad FPS is not a good u know?
sometimes someone may got freezes or drops (in mss) and they'll be kicked for this... it's bad idea.
yes but u understand, i'm a lagshot player and around the community I play in people abuse /fpslimit and It's pretty damn annoying, if they can't get above 40 fps It's not my problem really.
Reply
#8

Quote:
Originally Posted by ivndosos
Посмотреть сообщение
yes but u understand, i'm a lagshot player and around the community I play in people abuse /fpslimit and It's pretty damn annoying, if they can't get above 40 fps It's not my problem really.
you don`t get it,if the game freezes or something they`ll still get kicked no matter how good their pc is..
Reply
#9

Add warnings before kicking and clear them regularly.

Or measure the average FPS for the last 20 or 30 seconds, then you get a value that will not get influenced by short lags.
In my experience SAMP almost never has noticable micro lags if there's a reasonable amount of items (vehicles, players, labels, objects) streamed in. This also depends on your gamemode, if it's a deathmatch without a lot of fancy stuff around, samp runs as smooth as any other game.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)