SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 06/07/2018, 07:09 AM   #1
NinjaChicken
Huge Clucker
 
NinjaChicken's Avatar
 
Join Date: Dec 2011
Posts: 466
Reputation: 22
Default Changing Model Download When Logging in??

Currently when new players connect to the server this shows up over the login box



Is it possible at all to not have that show up and wait until the player has successfully logged into the server before it begins downloading the models? Or even if its possible to hide it completely and just download in the background?
__________________
Crap that made me Giggle and Shit
Quote:
Originally Posted by Eminem 2ka9 View Post
My players walk like they pissed themselves, how do I set it to a normal walk style where they actually run fast and not like benders?
Quote:
Originally Posted by justsomeguy View Post
Did I just saw a prisoner with a goddamn katana? How did he smuggle that in!? Did he just shove that katana up his anus?
Owner and Operator Of www.nl-gaming.net

NinjaChicken is offline   Reply With Quote
Old 06/07/2018, 09:41 AM   #2
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 73
Reputation: 15
Default Re: Changing Model Download When Logging in??

Your best bet is to just show your login/registration dialogs (along with everything else you have under OnPlayerConnect for the most part) AFTER a player finishes downloading everything. Which would be OnPlayerFinishedDownloading.
CantBeJohn is online now   Reply With Quote
Old 06/07/2018, 12:02 PM   #3
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 174
Reputation: 29
Default Re: Changing Model Download When Logging in??

And stop using that cheat..
Verc is offline   Reply With Quote
Old 06/07/2018, 01:20 PM   #4
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 270
Reputation: 72
Default Re: Changing Model Download When Logging in??

Quote:
Originally Posted by Verc View Post
And stop using that cheat..
Some people use it to save positions faster and to save cars faster
Lokii is online now   Reply With Quote
Old 06/07/2018, 03:12 PM   #5
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,586
Reputation: 321
Default Re: Changing Model Download When Logging in??

I recommend you use part of the account read resources in OnPlayerConnect and login parameter in OnPlayerRequestClass.

OnPlayerFinishedDownloading is only called once when it connects. When reconnected (loss of connection) this callback is not called.

Compare to verify that the login parameter for the player has been shown, otherwise show and change the value of the variable.

PHP Code:
public OnPlayerConnect(playerid)
{
    
ShowLogin[playerid]=false;
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    if(!
ShowLogin[playerid])
    {
        
//ShowPlayerDialog(playerid, ...);
        
ShowLogin[playerid]=true;
        return 
0;
    }
    return 
1;

__________________
Locky_ is offline   Reply With Quote
Old 06/07/2018, 11:48 PM   #6
NinjaChicken
Huge Clucker
 
NinjaChicken's Avatar
 
Join Date: Dec 2011
Posts: 466
Reputation: 22
Default Re: Changing Model Download When Logging in??

Quote:
Originally Posted by Verc View Post
And stop using that cheat..
How is it cheating when i own and run the server haha? without it administrating it would be alot harder
__________________
Crap that made me Giggle and Shit
Quote:
Originally Posted by Eminem 2ka9 View Post
My players walk like they pissed themselves, how do I set it to a normal walk style where they actually run fast and not like benders?
Quote:
Originally Posted by justsomeguy View Post
Did I just saw a prisoner with a goddamn katana? How did he smuggle that in!? Did he just shove that katana up his anus?
Owner and Operator Of www.nl-gaming.net

NinjaChicken is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
0.3 DL Loading Model not download Charisma Scripting Help 0 10/03/2018 07:18 AM
where can i download shader model 3.0? Daem Everything and Nothing 2 18/08/2009 06:43 PM


All times are GMT. The time now is 03:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.