Is there anyways to detect if player is unsynced - 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: Is there anyways to detect if player is unsynced (
/showthread.php?tid=518673)
Is there anyways to detect if player is unsynced -
Matnix - 11.06.2014
Hello,
I have actually done a system to sync a players, but I know there will be some player who will never use the sync command, so I'd like to know how it's possible to see if he is synced or not.
I can make a kick ping but there are someplayers who have 200+ but are not unsynced.
thx for futur hlp
Re: Is there anyways to detect if player is unsynced -
Djole1337 - 11.06.2014
https://sampwiki.blast.hk/wiki/NetStats_PacketLossPercent
Should help.
Re : Is there anyways to detect if player is unsynced -
Matnix - 12.06.2014
pawn Код:
if(NetStats_ NetStats_PacketLossPercent(playerid))
{
if(..) // dont see what i do there
{
// kick unsync
}
}
i think it's like that i will need to script hit, but i don't know to get packetlose percents.. to do like :
pawn Код:
if(plose[playerid] >= 0.1) // etc..