question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: question (
/showthread.php?tid=650046)
question -
ivndosos - 19.02.2018
I've searched around forums, Couldn't find a tutorial.
How do I make Min FPS Kicker?
(with explanations please)
Re: question -
RxErT - 19.02.2018
You probably meant Ping* kicker right?
Btw, here is a tutorial:
https://sampforum.blast.hk/showthread.php?tid=599557
Re: question -
ivndosos - 19.02.2018
No, fps kicker.
if someone for example has below lets say 40 fps for example he will get kicked
Re: question -
RxErT - 19.02.2018
This may help then:
https://sampforum.blast.hk/showthread.php?tid=399297
Re: question -
GRiMMREAPER - 19.02.2018
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;
}
}
}
Re: question -
Mugala - 19.02.2018
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.
Re: question -
ivndosos - 20.02.2018
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.
Re: question -
PepsiCola23 - 20.02.2018
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..
Re: question -
NaS - 20.02.2018
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.