25.10.2015, 19:12
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
PHP код:
OnLoadingFinish(playerid, LoadID); // Called when the animation is finished
- 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;
}







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.