[FilterScript] Textdraw Intro
#41

C:\Users\iliyan\Desktop\samp03x_svr_R1-2_win32\filterscripts\abv.pwn(154) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

this comes out
Код:
#include <a_samp>
// Intro script by O.K.Style™
new Text:Intro[12];
// www.gta-news.org
public OnFilterScriptInit()
{
        Intro[0] = TextDrawCreate(642.0, 1.0, "~n~");
        TextDrawLetterSize(Intro[0], 0.5, 49.5);
        TextDrawUseBox(Intro[0], 1);
        TextDrawBoxColor(Intro[0], 0x000000FF);
        TextDrawTextSize(Intro[0], -2.0, 0.0);

        Intro[1] = TextDrawCreate(190.000000, 190.000000, "~p~~h~Created by d0nTtoucH 2013");
        TextDrawFont(Intro[1], 2);
        TextDrawLetterSize(Intro[1], 0.570000, 1.799999);

        Intro[2] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[2], 2);
        TextDrawColor(Intro[2], 0xFFFFFF22);
        TextDrawLetterSize(Intro[2], 0.570000, 1.799999);

        Intro[3] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[3], 2);
        TextDrawColor(Intro[3], 0xFFFFFF44);
        TextDrawLetterSize(Intro[3], 0.570000, 1.799999);

        Intro[4] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[4], 2);
        TextDrawColor(Intro[4], 0xFFFFFF66);
        TextDrawLetterSize(Intro[4], 0.570000, 1.799999);

        Intro[5] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[5], 2);
        TextDrawColor(Intro[5], 0xFFFFFF88);
        TextDrawLetterSize(Intro[5], 0.570000, 1.799999);

        Intro[6] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[6], 2);
        TextDrawColor(Intro[6], 0xFFFFFFAA);
        TextDrawLetterSize(Intro[6], 0.570000, 1.799999);

        Intro[7] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[7], 2);
        TextDrawColor(Intro[7], 0xFFFFFFCC);
        TextDrawLetterSize(Intro[7], 0.570000, 1.799999);

        Intro[8] = TextDrawCreate(310.000000, 190.000000, "present...");
        TextDrawFont(Intro[8], 2);
        TextDrawColor(Intro[8], 0xFFFFFFFF);
        TextDrawLetterSize(Intro[8], 0.570000, 1.799999);

        Intro[9] = TextDrawCreate(190.0, 202.0, ".");
        TextDrawFont(Intro[9], 1);
        TextDrawLetterSize(Intro[9], 23.250051, 1.099999);

        Intro[10] = TextDrawCreate(304.00, 223.0, "~y~~h~JustPlay-BG.Info .::[ RealLife ]::.[0.3x]");
        TextDrawFont(Intro[10], 2);
        TextDrawLetterSize(Intro[10], 0.340000, 1.099999);

        Intro[11] = TextDrawCreate(331.0, 235.0, "~g~~h~www.justPlay-BG.Info");
        TextDrawFont(Intro[11], 2);
        TextDrawLetterSize(Intro[11], 0.340000, 1.099999);

        return 1;
}
public OnPlayerConnect(playerid)
{
        TogglePlayerSpectating(playerid, true);
        ForceClassSelection(playerid);
        SetPVarInt(playerid, "Intro", 0);
        SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
        return 1;
}
forward ShowIntro(playerid);
public ShowIntro(playerid)
{
        SetPVarInt(playerid, "Intro", GetPVarInt(playerid, "Intro") + 1);
        new iteration = GetPVarInt(playerid, "Intro");
        switch(iteration)
        {
                case 1:
                {
                        for(new i; i < 11; i++)
                        {
                            SendClientMessage(playerid, -1, "");
                        }
                        TextDrawShowForPlayer(playerid, Intro[0]);
                }
                case 2:
                {
                    TextDrawShowForPlayer(playerid, Intro[1]);
                }
                case 3:
                {
            TextDrawShowForPlayer(playerid, Intro[2]);
                }
                case 4:
                {
                    TextDrawHideForPlayer(playerid, Intro[2]);
                    TextDrawShowForPlayer(playerid, Intro[3]);
                }
                case 5:
                {
                    TextDrawHideForPlayer(playerid, Intro[3]);
                    TextDrawShowForPlayer(playerid, Intro[4]);
                }
                case 6:
                {
                    TextDrawHideForPlayer(playerid, Intro[4]);
                    TextDrawShowForPlayer(playerid, Intro[5]);
                }
                case 7:
                {
                    TextDrawHideForPlayer(playerid, Intro[5]);
                    TextDrawShowForPlayer(playerid, Intro[6]);
                }
                case 8:
                {
                    TextDrawHideForPlayer(playerid, Intro[6]);
                    TextDrawShowForPlayer(playerid, Intro[7]);
                }
                case 9:
                {
                    TextDrawHideForPlayer(playerid, Intro[7]);
                    TextDrawShowForPlayer(playerid, Intro[8]);
                }
                case 10:
                {
                    TextDrawShowForPlayer(playerid, Intro[9]);
                }
                case 11:
                {
                    TextDrawShowForPlayer(playerid, Intro[10]);
                }
                case 12:
                {
                    TextDrawShowForPlayer(playerid, Intro[11]);
                }
        }
        if(GetPVarInt(playerid, "Intro") < 10)
        {
                SetTimerEx("ShowIntro", 300, 0, "d", playerid);
        }
        else if(9 < GetPVarInt(playerid, "Intro") < 13)
        {
        SetTimerEx("ShowIntro", 2000, 0, "d", playerid);
        }
        else
        {
            for(new i; i < sizeof(Intro); i++)
            {
                        TextDrawHideForPlayer(playerid, Intro[i]);
                }
                TogglePlayerSpectating(playerid, true);
                ForceClassSelection(playerid);
        }
        return 1;
}
public OnFilterScriptExit()
{
        for(new i; i < sizeof(Intro); i++)
        {
                TextDrawDestroy(Intro[i]);
        }
        return 1;
}
Reply


Messages In This Thread
Textdraw Intro - by OKStyle - 02.09.2011, 15:05
Re: Textdraw Intro - by Jantjuh - 02.09.2011, 15:07
Re: Textdraw Intro - by OKStyle - 02.09.2011, 15:15
Re: Textdraw Intro - by Ironboy - 02.09.2011, 15:17
Re: Textdraw Intro - by Venice - 02.09.2011, 15:19
Re: Textdraw Intro - by iPLEOMAX - 02.09.2011, 15:20
Re: Textdraw Intro - by SourceCode - 02.09.2011, 15:32
Re: Textdraw Intro - by OKStyle - 02.09.2011, 15:43
Re: Textdraw Intro - by SourceCode - 02.09.2011, 15:45
Re: Textdraw Intro - by SourceCode - 02.09.2011, 15:49
Re: Textdraw Intro - by OKStyle - 02.09.2011, 16:01
Re: Textdraw Intro - by SourceCode - 02.09.2011, 16:06
Re: Textdraw Intro - by OKStyle - 02.09.2011, 17:11
Re: Textdraw Intro - by WoodPecker - 02.09.2011, 17:34
Re: Textdraw Intro - by PANTHERX - 03.09.2011, 04:21
Re: Textdraw Intro - by lolumadd_ - 03.09.2011, 04:59
Re: Textdraw Intro - by Ammo - 03.09.2011, 09:59
Re: Textdraw Intro - by Zh3r0 - 03.09.2011, 10:04
Re: Textdraw Intro - by Ammo - 03.09.2011, 15:32
Re: Textdraw Intro - by Phanto90 - 03.09.2011, 15:40
Re: Textdraw Intro - by OKStyle - 03.09.2011, 15:54
Re: Textdraw Intro - by Jochemd - 03.09.2011, 15:59
Re: Textdraw Intro - by Ammo - 04.09.2011, 12:34
Re: Textdraw Intro - by OKStyle - 04.09.2011, 14:54
Re: Textdraw Intro - by Jochemd - 04.09.2011, 15:08
Re: Textdraw Intro - by Zh3r0 - 04.09.2011, 15:53
Re: Textdraw Intro - by maseri - 04.09.2011, 21:53
Re: Textdraw Intro - by OKStyle - 05.09.2011, 00:47
Re: Textdraw Intro - by SourceCode - 05.09.2011, 02:00
Re: Textdraw Intro - by OKStyle - 05.09.2011, 07:53
Re: Textdraw Intro - by Eazy_Eye [SERBIA] - 05.09.2011, 08:09
Re: Textdraw Intro - by System64 - 05.09.2011, 08:24
Re: Textdraw Intro - by TheBluec0de - 05.09.2011, 08:26
Re: Textdraw Intro - by TheBluec0de - 05.09.2011, 09:17
Re: Textdraw Intro - by maseri - 05.09.2011, 15:44
Re: Textdraw Intro - by Xx_OutLawZ_xX - 05.09.2011, 23:33
Re: Textdraw Intro - by =WoR=Bruno - 06.09.2011, 20:02
Re: Textdraw Intro - by [H]ead - 07.09.2011, 05:15
Re: Textdraw Intro - by OKStyle - 07.09.2011, 06:01
Re: Textdraw Intro - by [H]ead - 07.09.2011, 06:33
Re: Textdraw Intro - by d0nTtoucH - 16.04.2013, 14:48
Re: Textdraw Intro - by dr.lozer - 16.04.2013, 15:03
Re: Textdraw Intro - by d0nTtoucH - 16.04.2013, 15:05
Re: Textdraw Intro - by Gamer_007 - 16.04.2013, 15:52
Re: Textdraw Intro - by eldar7393 - 16.04.2013, 16:54
Re: Textdraw Intro - by ExT4zY - 16.04.2013, 17:41
Re: Textdraw Intro - by d0nTtoucH - 16.04.2013, 21:17
Re: Textdraw Intro - by DJTunes - 16.04.2013, 22:10
Re: Textdraw Intro - by [ADM]Madon - 17.04.2013, 01:19
Re: Textdraw Intro - by Tuntun - 17.04.2013, 01:32
Re: Textdraw Intro - by AzaMx - 26.08.2014, 14:55
Re: Textdraw Intro - by OKStyle - 26.08.2014, 16:20
Re: Textdraw Intro - by AroseKhanNiazi - 27.08.2014, 09:35
Re: Textdraw Intro - by satafinix - 27.08.2014, 15:39
Re: Textdraw Intro - by TheUnique - 13.01.2015, 22:03
Re: Textdraw Intro - by OKStyle - 31.03.2017, 15:49
Re: Textdraw Intro - by Electron123 - 08.04.2017, 14:21

Forum Jump:


Users browsing this thread: 6 Guest(s)