Is Custom Files Ready?

Started by vito, Aug 04, 2016, 09:58 PM

Previous topic - Next topic

vito

Hello, is it possible to check has player downloaded all custom files or he is still downloading?

Diego^

I created my own function for this.

function CPlayer::IsDownloading()
{
if ( this.Color.r == 255 && this.Color.g == 255 && this.Color.b == 255 ) return true;
else return false;
}

Note: If there is any class with RGB( 255, 255, 255 ), a change is necessary.

BRL's Developer.

EK.IceFlake

Or you can set a variable to 1 when player joins and 0 when onplayerrequestclass
then check the variable

vito

Quote from: EK.CrystalBlue on Aug 04, 2016, 10:53 PMOr you can set a variable to 1 when player joins and 0 when onplayerrequestclass
then check the variable
So no onplayerrequestclass before all downloads will done?

EK.IceFlake

Quote from: vito on Aug 05, 2016, 08:56 AM
Quote from: EK.CrystalBlue on Aug 04, 2016, 10:53 PMOr you can set a variable to 1 when player joins and 0 when onplayerrequestclass
then check the variable
So no onplayerrequestclass before all downloads will done?
Yeah, onplayerrequestclass is called when the client wants to see a class
he doesn't feel like seeing any class before downloading all files

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.