Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************/
- /* * K - Loading Screen * */
- /* * 1.0 * */
- /* * Kavinsky Script * */
- /******************************************************************************/
- #include <a_samp>
- #include <PC>
- new
- Text:Sprite0;
- new Texture[][] ={"LOADSUK:loadsc14","LOADSUK:loadsc13","LOADSUK:loadsc12","LOADSUK:loadsc11","LOADSUK:loadsc10","LOADSUK:loadsc9","LOADSUK:loadsc8","LOADSUK:loadsc7","LOADSUK:loadsc6","LOADSUK:loadsc5","LOADSUK:loadsc4","LOADSUK:loadsc3","LOADSUK:loadsc2","LOADSUK:loadsc1"};
- public OnFilterScriptInit()
- {
- print("__________________________________________");
- print(" ");
- print(" Debug Message: ");
- print(" K - Loading Screen by Kavinsky Script 1.0");
- print(" Successfully loaded! ");
- print(" ");
- print("__________________________________________");
- new TT = random(sizeof(Texture));
- Sprite0 = TextDrawCreate(-0.500, -0.500,Texture[TT]);
- TextDrawFont(Sprite0, 4);
- TextDrawTextSize(Sprite0, 647.500, 457.000);
- TextDrawColor(Sprite0, -1);
- PCaricamentoInit();
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerInterior(playerid,0);
- SetTimer("ShowTD",500,0);
- TogglePlayerControllable(playerid,0);
- return 1;
- }
- forward ShowTD(playerid);
- public ShowTD(playerid)
- {
- TextDrawShowForPlayer(playerid,Sprite0);
- SetTimer("HideTD",5000,0);
- CaricamentoForPlayer(playerid,23,-1);
- return 1;
- }
- forward HideTD(playerid);
- public HideTD(playerid)
- {
- TextDrawHideForPlayer(playerid,Sprite0);
- TogglePlayerControllable(playerid,1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement