[Include] b_loading.inc | Loading animation like GTA:SA singleplayer
#1

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(playeridLoadID); // Show the animation to player 
Callbacks
PHP код:
OnLoadingFinish(playeridLoadID); // 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(playeridparams[]) // Make the testing command
    
return SetPlayerLoading(playeridTEST_LOADING); // Set player the animation
    
public OnLoadingFinish(playeridLoadID) { // Called when the animation is finished
    
switch(LoadID) {
        case 
TEST_LOADINGSendClientMessage(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.
Reply
#2

Nice job, +REPed
Reply
#3

Fake loading screens are fucking stupid.
Reply
#4

Maybe a good idea to load objects ?
Reply
#5

Objects load in a couple milliseconds.
Reply
#6

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.
Reply
#7

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
Reply
#8

Well, it can be used when you load the gamemode, that time when you enter the server till Register/Login dialog pop up
Reply
#9

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 ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)