b_loading.inc | Loading animation like GTA:SA singleplayer -
AlexBlack - 25.10.2015
b_Loading.inc
I was bored today and i'am cleaning my computer so i have find this script that i have make it in june ( i'am not sure ), so i'am releasing it maybe someone need it.
Functions and callbacks
Functions :
PHP код:
SetPlayerLoading(playerid, LoadID); // Show the animation to player
Callbacks
PHP код:
OnLoadingFinish(playerid, LoadID); // Called when the animation is finished
Includes Used
- y_hooks.inc <->
- pregress2.inc <https://sampforum.blast.hk/showthread.php?tid=537468>
Example
PHP код:
#include <a_samp> // Always included
#include <zcmd> // Included for the test command
#include <b_loading> // b_loading.inc - released script.
#define TEST_LOADING 0 // DEFINE THE LOADING ID
CMD:testloading(playerid, params[]) // Make the testing command
return SetPlayerLoading(playerid, TEST_LOADING); // Set player the animation
public OnLoadingFinish(playerid, LoadID) { // Called when the animation is finished
switch(LoadID) {
case TEST_LOADING: SendClientMessage(playerid, -1, "End of the Loading animation."); // Test message
}
return 1;
}
RESULTS :
Source
- Pastebin (
http://pastebin.com/jRLusUXn)
- Fade screen after the loading is included, credits to the person who make me this.
- The loading screen is dynamic ( not the same screen every time ).
Peace.
Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
SecretBoss - 25.10.2015
Nice job,
+REPed
Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
Pottus - 25.10.2015
Fake loading screens are fucking stupid.
Re : b_loading.inc | Loading animation like GTA:SA singleplayer -
AlexBlack - 25.10.2015
Maybe a good idea to load objects ?
Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
Pottus - 25.10.2015
Objects load in a couple milliseconds.
Re : b_loading.inc | Loading animation like GTA:SA singleplayer -
AlexBlack - 25.10.2015
Yeah maybe I agree with you, but i'am just giving an example, it can be used for another things, anyway i have release this script just cuz i don't need it anymore, maybe can be usefull for somebody.
Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
PT - 25.10.2015
The bar is on wrong side XD should be on left..
Quote:
Originally Posted by Pottus
Objects load in a couple milliseconds.
|
Once i used something like this to load data from player from database xD
Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
SecretBoss - 25.10.2015
Well, it can be used when you load the gamemode, that time when you enter the server till Register/Login dialog pop up
Re : Re: b_loading.inc | Loading animation like GTA:SA singleplayer -
AlexBlack - 25.10.2015
Quote:
Originally Posted by PT
The bar is on wrong side XD should be on left..
|
I didn't copy 100% the GTA singleplayer but if you want i can edit that
Quote:
Originally Posted by PT
Once i used something like this to load data from player from database xD
|
Yea , this can be usefull for many things ^^