Is Custom Files Ready?

vito

  • Sr. Member
  • Posts: 405
Is Custom Files Ready?
« on August 4th, 2016, 10:58 PM »
Hello, is it possible to check has player downloaded all custom files or he is still downloading?

Diego^

  • Jr. Member
  • LBR Member.
  • Posts: 89
Re: Is Custom Files Ready?
« Reply #1, on August 4th, 2016, 11:42 PM »
I created my own function for this.

Code: [Select]
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

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Is Custom Files Ready?
« Reply #2, on August 4th, 2016, 11:53 PM »
Or you can set a variable to 1 when player joins and 0 when onplayerrequestclass
then check the variable

vito

  • Sr. Member
  • Posts: 405
Re: Is Custom Files Ready?
« Reply #3, on August 5th, 2016, 09:56 AM »
Quote from EK.CrystalBlue on August 4th, 2016, 11:53 PM
Or 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

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Is Custom Files Ready?
« Reply #4, on August 5th, 2016, 12:59 PM »
Quote from vito on August 5th, 2016, 09:56 AM
Quote from EK.CrystalBlue on August 4th, 2016, 11:53 PM
Or 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

  • Wiki Contributor
  • LBR | Co-Leader & Brasil Real RPG | Developer
  • Posts: 470
Code: [Select]
if( !sucess ) tryAgain();

vito

  • Sr. Member
  • Posts: 405

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,808