1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

iw4x integration - add delay before sending up persistent data

This commit is contained in:
RaidMax 2022-08-31 16:17:02 -05:00
parent 4d5d61f3a0
commit f2b0e5855b

View File

@ -93,6 +93,8 @@ Log2Console( logLevel, message )
SetPersistentData()
{
self endon( "disconnect" );
guidHigh = self GetPlayerData( "bests", "none" );
guidLow = self GetPlayerData( "awards", "none" );
persistentGuid = guidHigh + "," + guidLow;
@ -100,6 +102,8 @@ SetPersistentData()
if ( guidIsStored )
{
// give IW4MAdmin time to collect IP
wait( 15 );
scripts\_integration_base::LogDebug( "Uploading persistent guid " + persistentGuid );
scripts\_integration_base::SetClientMeta( "PersistentClientGuid", persistentGuid );
return;