Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define max_players 222
- new Text:IntroText[6];
- new IntroIteration[max_players];
- public OnFilterScriptInit()
- {
- IntroText[0] = TextDrawCreate(642.0,1.0,"~n~");
- TextDrawLetterSize(IntroText[0],0.5,49.5);
- TextDrawUseBox(IntroText[0],1);
- TextDrawBoxColor(IntroText[0],0x000000FF);
- TextDrawTextSize(IntroText[0],-2.0,0.0);
- IntroText[1] = TextDrawCreate(190.000000,190.000000,"~p~~h~Dragon_Knight");
- TextDrawFont(IntroText[1],2);
- TextDrawLetterSize(IntroText[1],0.570000,1.799999);
- IntroText[2] = TextDrawCreate(310.000000,213.000000,"present...");
- TextDrawFont(IntroText[2],2);
- TextDrawLetterSize(IntroText[2],0.570000,1.799999);
- IntroText[3] = TextDrawCreate(190.0,235.0,".");
- TextDrawFont(IntroText[3],1);
- TextDrawLetterSize(IntroText[3],23.250051,1.099999);
- IntroText[4] = TextDrawCreate(304.00,246.0,"~y~~h~Mafia Wars 2.1");
- TextDrawFont(IntroText[4],2);
- TextDrawLetterSize(IntroText[4],0.340000,1.099999);
- IntroText[5] = TextDrawCreate(331.0,258.0,"~g~~h~gta.qth-mo.ru");
- TextDrawFont(IntroText[5],2);
- TextDrawLetterSize(IntroText[5],0.340000,1.099999);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //TogglePlayerSpectating(playerid,true);
- //ForceClassSelection(playerid);
- IntroIteration[playerid] = 0;
- SetTimerEx("ShowIntro",1000,0,"d",playerid);
- return 1;
- }
- forward ShowIntro(playerid);
- public ShowIntro(playerid)
- {
- IntroIteration[playerid]++;
- switch(IntroIteration[playerid])
- {
- case 1:
- {
- for(new i; i < 11; i++) SendClientMessage(playerid,-1,"");
- TextDrawShowForPlayer(playerid,IntroText[0]);
- }
- case 2:
- {
- TextDrawShowForPlayer(playerid,IntroText[1]);
- }
- case 3:
- {
- TextDrawColor(IntroText[2],0xFFFFFF00);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 4:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF11);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 5:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF22);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 6:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF33);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 7:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF44);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 8:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF55);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 9:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF66);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 10:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF77);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 11:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF88);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 12:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFF99);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 13:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFAA);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 14:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFBB);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 15:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFCC);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 16:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFDD);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 17:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFEE);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 18:
- {
- TextDrawHideForPlayer(playerid,IntroText[2]);
- TextDrawColor(IntroText[2],0xFFFFFFFF);
- TextDrawShowForPlayer(playerid,IntroText[2]);
- }
- case 19:
- {
- TextDrawShowForPlayer(playerid,IntroText[3]);
- }
- case 20:
- {
- TextDrawShowForPlayer(playerid,IntroText[4]);
- }
- case 21:
- {
- TextDrawShowForPlayer(playerid,IntroText[5]);
- }
- }
- if(IntroIteration[playerid] < 20) SetTimerEx("ShowIntro",100,0,"d",playerid);
- else if(IntroIteration[playerid] < 22) SetTimerEx("ShowIntro",2000,0,"d",playerid);
- else
- {
- for(new i; i < sizeof(IntroText); i++) TextDrawHideForPlayer(playerid,IntroText[i]);
- //TogglePlayerSpectating(playerid,false);
- //ForceClassSelection(playerid);
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- for(new i; i < sizeof(IntroText); i++) TextDrawDestroy(IntroText[i]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment