Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////SAMP loading screen by UltraScripter////////////////////////////
- #include <a_samp>
- new Text:LOADSCS[14];
- new Spawned[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- #endif
- public OnPlayerConnect(playerid)
- {
- LOADSCS[0] = TextDrawCreate(0.0, 0.0, "loadsc1:loadsc1");
- TextDrawFont(LOADSCS[0], 4);
- TextDrawUseBox(LOADSCS[0], 1);
- TextDrawTextSize(LOADSCS[0], 650.0, 470.0);
- LOADSCS[1] = TextDrawCreate(0.0, 0.0, "loadsc2:loadsc2");
- TextDrawFont(LOADSCS[1], 4);
- TextDrawUseBox(LOADSCS[1], 1);
- TextDrawTextSize(LOADSCS[1], 650.0, 470.0);
- LOADSCS[2] = TextDrawCreate(0.0, 0.0, "loadsc3:loadsc3");
- TextDrawFont(LOADSCS[2], 4);
- TextDrawUseBox(LOADSCS[2], 1);
- TextDrawTextSize(LOADSCS[2], 650.0, 470.0);
- LOADSCS[3] = TextDrawCreate(0.0, 0.0, "loadsc4:loadsc4");
- TextDrawFont(LOADSCS[3], 4);
- TextDrawUseBox(LOADSCS[3], 1);
- TextDrawTextSize(LOADSCS[3], 650.0, 470.0);
- LOADSCS[4] = TextDrawCreate(0.0, 0.0, "loadsc5:loadsc5");
- TextDrawFont(LOADSCS[4], 4);
- TextDrawUseBox(LOADSCS[4], 1);
- TextDrawTextSize(LOADSCS[4], 650.0, 470.0);
- LOADSCS[5] = TextDrawCreate(0.0, 0.0, "loadsc6:loadsc6");
- TextDrawFont(LOADSCS[5], 4);
- TextDrawUseBox(LOADSCS[5], 1);
- TextDrawTextSize(LOADSCS[5], 650.0, 470.0);
- LOADSCS[6] = TextDrawCreate(0.0, 0.0, "loadsc7:loadsc7");
- TextDrawFont(LOADSCS[6], 4);
- TextDrawUseBox(LOADSCS[6], 1);
- TextDrawTextSize(LOADSCS[6], 650.0, 470.0);
- LOADSCS[7] = TextDrawCreate(0.0, 0.0, "loadsc8:loadsc8");
- TextDrawFont(LOADSCS[7], 4);
- TextDrawUseBox(LOADSCS[7], 1);
- TextDrawTextSize(LOADSCS[7], 650.0, 470.0);
- LOADSCS[8] = TextDrawCreate(0.0, 0.0, "loadsc9:loadsc9");
- TextDrawFont(LOADSCS[8], 4);
- TextDrawUseBox(LOADSCS[8], 1);
- TextDrawTextSize(LOADSCS[8], 650.0, 470.0);
- LOADSCS[9] = TextDrawCreate(0.0, 0.0, "loadsc10:loadsc10");
- TextDrawFont(LOADSCS[9], 4);
- TextDrawUseBox(LOADSCS[9], 1);
- TextDrawTextSize(LOADSCS[9], 650.0, 470.0);
- LOADSCS[10] = TextDrawCreate(0.0, 0.0, "loadsc11:loadsc11");
- TextDrawFont(LOADSCS[10], 4);
- TextDrawUseBox(LOADSCS[10], 1);
- TextDrawTextSize(LOADSCS[10], 650.0, 470.0);
- LOADSCS[11] = TextDrawCreate(0.0, 0.0, "loadsc12:loadsc12");
- TextDrawFont(LOADSCS[11], 4);
- TextDrawUseBox(LOADSCS[11], 1);
- TextDrawTextSize(LOADSCS[11], 650.0, 470.0);
- LOADSCS[12] = TextDrawCreate(0.0, 0.0, "loadsc13:loadsc13");
- TextDrawFont(LOADSCS[12], 4);
- TextDrawUseBox(LOADSCS[12], 1);
- TextDrawTextSize(LOADSCS[12], 650.0, 470.0);
- LOADSCS[13] = TextDrawCreate(0.0, 0.0, "loadsc14:loadsc14");
- TextDrawFont(LOADSCS[13], 4);
- TextDrawUseBox(LOADSCS[13], 1);
- TextDrawTextSize(LOADSCS[13], 650.0, 470.0);
- Spawned[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- Spawned[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Spawned[playerid] == 0)
- {
- PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/s/otw0f6mk0w1ouha/GTA%20San%20Andreas%20Theme%20Song%20Full%20%21%20%21.mp3");
- SetPlayerHealth(playerid, 999999);
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("LOADSCS1", 100, false, "i", playerid);
- Spawned[playerid] = 1;
- }
- else return 0;
- return 1;
- }
- forward LOADSCS1(playerid);
- public LOADSCS1(playerid)
- {
- TextDrawShowForPlayer(playerid, LOADSCS[0]);
- SetTimerEx("LOADSCS2", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS2(playerid);
- public LOADSCS2(playerid)
- {
- TextDrawDestroy(LOADSCS[0]);
- TextDrawShowForPlayer(playerid, LOADSCS[2]);
- SetTimerEx("LOADSCS3", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS3(playerid);
- public LOADSCS3(playerid)
- {
- TextDrawDestroy(LOADSCS[2]);
- TextDrawShowForPlayer(playerid, LOADSCS[3]);
- SetTimerEx("LOADSCS4", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS4(playerid);
- public LOADSCS4(playerid)
- {
- TextDrawDestroy(LOADSCS[3]);
- TextDrawShowForPlayer(playerid, LOADSCS[4]);
- SetTimerEx("LOADSCS5", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS5(playerid);
- public LOADSCS5(playerid)
- {
- TextDrawDestroy(LOADSCS[4]);
- TextDrawShowForPlayer(playerid, LOADSCS[5]);
- SetTimerEx("LOADSCS6", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS6(playerid);
- public LOADSCS6(playerid)
- {
- TextDrawDestroy(LOADSCS[5]);
- TextDrawShowForPlayer(playerid, LOADSCS[6]);
- SetTimerEx("LOADSCS7", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS7(playerid);
- public LOADSCS7(playerid)
- {
- TextDrawDestroy(LOADSCS[6]);
- TextDrawShowForPlayer(playerid, LOADSCS[1]);
- SetTimerEx("LOADSCS8", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS8(playerid);
- public LOADSCS8(playerid)
- {
- TextDrawDestroy(LOADSCS[1]);
- TextDrawShowForPlayer(playerid, LOADSCS[8]);
- SetTimerEx("LOADSCS9", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS9(playerid);
- public LOADSCS9(playerid)
- {
- TextDrawDestroy(LOADSCS[8]);
- TextDrawShowForPlayer(playerid, LOADSCS[9]);
- SetTimerEx("LOADSCS10", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS10(playerid);
- public LOADSCS10(playerid)
- {
- TextDrawDestroy(LOADSCS[9]);
- TextDrawShowForPlayer(playerid, LOADSCS[10]);
- SetTimerEx("LOADSCS11", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS11(playerid);
- public LOADSCS11(playerid)
- {
- TextDrawDestroy(LOADSCS[10]);
- TextDrawShowForPlayer(playerid, LOADSCS[11]);
- SetTimerEx("LOADSCS12", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS12(playerid);
- public LOADSCS12(playerid)
- {
- TextDrawDestroy(LOADSCS[11]);
- TextDrawShowForPlayer(playerid, LOADSCS[12]);
- SetTimerEx("LOADSCS13", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS13(playerid);
- public LOADSCS13(playerid)
- {
- TextDrawDestroy(LOADSCS[12]);
- TextDrawShowForPlayer(playerid, LOADSCS[13]);
- SetTimerEx("LOADSCS14", 3000, false, "i", playerid);
- return 1;
- }
- forward LOADSCS14(playerid);
- public LOADSCS14(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- TextDrawDestroy(LOADSCS[13]);
- TogglePlayerControllable(playerid, 1);
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- /////SAMP loading screen by UltraScripter////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment