AdrenalineX Forums
General => AdrenalineX Development => Topic started by: [ISG]BoT on May 19, 2015, 10:51:26 am
-
mooman Please Fix your FPS system. always at the middle/near finish of race i get that message.
Cuz this low fps system missed many records.
(http://i.imgur.com/6LW0fKV.jpg)
(http://i.imgur.com/2Bz1xYv.jpg)
Solution
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(PlayerProgress[playerid] == gMaxRaceCheckpoints-2) // if player is last 2nd checkpoint then
{
if(PlayerFps[playerid] > 30) // if player fps is over than 30 then
{
AddRecord[playerid] = true; // record making variable true/1
}
}
}
I hope you will do something....
-
Yeah plz
-
its not mooman's script, script is made by karlis
LEAVE MOOMAN ALONE :|
-
ok then where is karlis ?
-
Just be patient and wait his answer when he'll see it
-
OMG, Karlis not replying withing 12 hours, he must be dead.
::)
-
(http://i.imgur.com/ySZqJaY.jpg)
bug abuse will count when player will play at below then 30 FPS.
I have new solution:
new WarningCount[MAX_PLAYERS];
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(PlayerFps[playerid] < 30 && WarningCount[playerid] < 3) // check if player's fps is under 30 & player's warning is not == 3 then
{
WarningCount[playerid]++; // count warning
}
if(PlayerProgress[playerid] == gMaxRaceCheckpoints-2 && WarningCount[playerid] < 3) // if player is last 2nd checkpoint & his warning is below then 3 then
{
if(PlayerFps[playerid] > 30) // if player fps is over than 30 then
{
AddRecord[playerid] = true; // record making activated variable true/1
}
}
else AddRecord[playerid] = false // record making deactivated variable false/0
}
public OnPlayerDisconnect(playerid, reason)
{
WarningCount[playerid] = 0;
}
I think that code will be the best for all players (low/high pingers)
-
The FPS System depends on your internet connection. Once your ping spikes up or you get packet loss the server will think that the player have a low FPS. You wouldn't have this problem if this was client-sided (I mean..Download the scripts first before playing)
-
In this topic the answer: http://forum.adrenalinex.co.uk/index.php/topic,6067.msg146448.html#msg146448