Textdraw Intro
#1

The The Top Of Script
------------------------------

new Text:Intro[15];
new Text:Version[1];


Under PublicOnGamMdInt
--------------------------------------

public OnGameModeInit()


{
//intro textdraw
{

Intro[0] = TextDrawCreate(85.999763, 121.306808, "the text goes in here. ** to keep my server uncopyable.");
TextDrawLetterSize(Intro[0], 2.703198, 31.384540);
TextDrawTextSize(Intro[0], 562.000000, 10.199999);
TextDrawAlignment(Intro[0], 1);
TextDrawColor(Intro[0], 0x00000030);
TextDrawUseBox(Intro[0], 1);
TextDrawBoxColor(Intro[0], 0x00000030);
TextDrawSetShadow(Intro[0], 0);
TextDrawSetOutline(Intro[0], 0);
TextDrawBackgroundColor(Intro[0], 0x00000030);
TextDrawFont(Intro[0], 2);
TextDrawSetProportional(Intro[0], 0);
TextDrawSetShadow(Intro[0], 0);
TextDrawSetSelectable(Intro[0], true);

Intro[1] = TextDrawCreate(2**.0*0106, 1*1.30*610, "****");
TextDrawLetterSize(Intro[1], 1.07*401, 4.*45065);
TextDrawAlignment(Intro[1], 1);
TextDrawColor(Intro[1], 15434****1);
TextDrawSetShadow(Intro[1], 0);
TextDrawSetOutline(Intro[1], 0);
TextDrawBackgroundColor(Intro[1], 2*5);
TextDrawFont(Intro[1], 2);
TextDrawSetProportional(Intro[1], 1);
TextDrawSetShadow(Intro[1], 0);

Intro[2] = TextDrawCreate(2*6.*00003, 1*5.6*3274, "- ***");
TextDrawLetterSize(Intro[2], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[2], 1);
TextDrawColor(Intro[2], 1671****);
TextDrawSetShadow(Intro[2], 0);
TextDrawSetOutline(Intro[2], 0);
TextDrawBackgroundColor(Intro[2], 2*5);
TextDrawFont(Intro[2], 1);
TextDrawSetProportional(Intro[2], 1);
TextDrawSetShadow(Intro[2], 0);

Intro[3] = TextDrawCreate(23*.*00018, *66.**3317, "****");
TextDrawLetterSize(Intro[3], 0.*93599, *.518*01);
TextDrawAlignment(Intro[3], 1);
TextDrawColor(Intro[3], 6**35);
TextDrawSetShadow(Intro[3], 0);
TextDrawSetOutline(Intro[3], 0);
TextDrawBackgroundColor(Intro[3], 2*5);
TextDrawFont(Intro[3], 3);
TextDrawSetProportional(Intro[3], 1);
TextDrawSetShadow(Intro[3], 0);

Intro[4] = TextDrawCreate(2*7.20**64, 1*4.6*250, "***");
TextDrawLetterSize(Intro[4], *.7*4800, 2.*14131);
TextDrawAlignment(Intro[4], 1);
TextDrawColor(Intro[4], -5963***);
TextDrawSetShadow(Intro[4], 0);
TextDrawSetOutline(Intro[4], 0);
TextDrawBackgroundColor(Intro[4], 2*5);
TextDrawFont(Intro[4], 2);
TextDrawSetProportional(Intro[4], 1);
TextDrawSetShadow(Intro[4], 0);

Intro[5] = TextDrawCreate(3*.200073, *67.600051, "*****");
TextDrawLetterSize(Intro[5], 0.*36800, *.406399);
TextDrawAlignment(Intro[5], 1);
TextDrawColor(Intro[5], -469756***);
TextDrawSetShadow(Intro[5], 0);
TextDrawSetOutline(Intro[5], 0);
TextDrawBackgroundColor(Intro[5], 2*5);
TextDrawFont(Intro[5], 3);
TextDrawSetProportional(Intro[5], 1);
TextDrawSetShadow(Intro[5], 0);

Intro[6] = TextDrawCreate(*06.7***57, 3**.*00024, "www.****.com");
TextDrawLetterSize(Intro[6], 0.*02400, *.040*33);
TextDrawAlignment(Intro[6], 1);
TextDrawColor(Intro[6], 167****5);
TextDrawSetShadow(Intro[6], 3);
TextDrawSetOutline(Intro[6], 1);
TextDrawBackgroundColor(Intro[6], 41***);
TextDrawFont(Intro[6], 2);
TextDrawSetProportional(Intro[6], 1);
TextDrawSetShadow(Intro[6], 3);

Intro[7] = TextDrawCreate(**6.800003, 1*7.7**948, "****");
TextDrawLetterSize(Intro[7], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[7], 1);
TextDrawColor(Intro[7], -139***1217);
TextDrawSetShadow(Intro[7], 0);
TextDrawSetOutline(Intro[7], 0);
TextDrawBackgroundColor(Intro[7], 2*5);
TextDrawFont(Intro[7], 1);
TextDrawSetProportional(Intro[7], 1);
TextDrawSetShadow(Intro[7], 0);

Intro[8] = TextDrawCreate(2**.200057, *15.**6642, "- ****");
TextDrawLetterSize(Intro[8], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[8], 1);
TextDrawColor(Intro[8], -137*2**08;
TextDrawSetShadow(Intro[8], 0);
TextDrawSetOutline(Intro[8], 0);
TextDrawBackgroundColor(Intro[8], 2*5);
TextDrawFont(Intro[8], 1);
TextDrawSetProportional(Intro[8], 1);
TextDrawSetShadow(Intro[8], 0);

Intro[9] = TextDrawCreate(1*7.099884, 237.07**25, "- ****");
TextDrawLetterSize(Intro[9], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[9], 1);
TextDrawColor(Intro[9], -1****4017);
TextDrawSetShadow(Intro[9], 0);
TextDrawSetOutline(Intro[9], 0);
TextDrawBackgroundColor(Intro[9], 2*5);
TextDrawFont(Intro[9], 1);
TextDrawSetProportional(Intro[9], 1);
TextDrawSetShadow(Intro[9], 0);

Intro[10] = TextDrawCreate(20*.699737, 2**.900115, "- ****");
TextDrawLetterSize(Intro[10], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[10], 1);
TextDrawColor(Intro[10], -13***94017);
TextDrawSetShadow(Intro[10], 0);
TextDrawSetOutline(Intro[10], 0);
TextDrawBackgroundColor(Intro[10], 2*5);
TextDrawFont(Intro[10], 1);
TextDrawSetProportional(Intro[10], 1);
TextDrawSetShadow(Intro[10], 0);

Intro[11] = TextDrawCreate(207.099960, 280.346801, "- *******");
TextDrawLetterSize(Intro[11], 0.40**00, 1.*00000);
TextDrawAlignment(Intro[11], 1);
TextDrawColor(Intro[11], -137829***7);
TextDrawSetShadow(Intro[11], 0);
TextDrawSetOutline(Intro[11], 0);
TextDrawBackgroundColor(Intro[11], 2*5);
TextDrawFont(Intro[11], 1);
TextDrawSetProportional(Intro[11], 1);
TextDrawSetShadow(Intro[11], 0);

Intro[12] = TextDrawCreate(1*5.8***18, *03.593414, "- ******");
TextDrawLetterSize(Intro[12], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[12], 1);
TextDrawColor(Intro[12], -13***94017);
TextDrawSetShadow(Intro[12], 0);
TextDrawSetOutline(Intro[12], 0);
TextDrawBackgroundColor(Intro[12], 2*5);
TextDrawFont(Intro[12], 1);
TextDrawSetProportional(Intro[12], 1);
TextDrawSetShadow(Intro[12], 0);

Intro[13] = TextDrawCreate(169.199951, 325.893249, "- ***");
TextDrawLetterSize(Intro[13], 0.*00000, 1.6**000);
TextDrawAlignment(Intro[13], 1);
TextDrawColor(Intro[13], 15434****1);
TextDrawSetShadow(Intro[13], 0);
TextDrawSetOutline(Intro[13], 0);
TextDrawBackgroundColor(Intro[13], 2*5);
TextDrawFont(Intro[13], 1);
TextDrawSetProportional(Intro[13], 1);
TextDrawSetShadow(Intro[13], 0);

Intro[14] = TextDrawCreate(117.1***81, 3**.480041, "******");
TextDrawLetterSize(Intro[14], 0.*00000, 1.*00000);
TextDrawAlignment(Intro[14], 1);
TextDrawColor(Intro[14], -65281);
TextDrawSetShadow(Intro[14], 0);
TextDrawSetOutline(Intro[14], 0);
TextDrawBackgroundColor(Intro[14], 255);
TextDrawFont(Intro[14], 1);
TextDrawSetProportional(Intro[14], 1);
TextDrawSetShadow(Intro[14], 0);


//end of intro textdraw
//Version Textdraw
Version[0] = TextDrawCreate(586.666442, 0.222185, "Ver. [****]");
TextDrawLetterSize(Version[0], 0.25****, 1.190***);
TextDrawAlignment(Version[0], 1);
TextDrawColor(Version[0], 3*75**5);
TextDrawSetShadow(Version[0], 0);
TextDrawSetOutline(Version[0], 0);
TextDrawBackgroundColor(Version[0], 2*5);
TextDrawFont(Version[0], *);
TextDrawSetProportional(Version[0], 1);
TextDrawSetShadow(Version[0], 0);
TextDrawSetSelectable(Version[0], true);
//End Of Version Textdraw



the rest of the code
------------------------------

public OnPlayerConnect(playerid)

{

TextDrawShowForPlayer(playerid,Intro[0]);
TextDrawShowForPlayer(playerid,Intro[1]);
TextDrawShowForPlayer(playerid,Intro[2]);
TextDrawShowForPlayer(playerid,Intro[3]);
TextDrawShowForPlayer(playerid,Intro[4]);
TextDrawShowForPlayer(playerid,Intro[5]);
TextDrawShowForPlayer(playerid,Intro[6]);
TextDrawShowForPlayer(playerid,Intro[7]);
TextDrawShowForPlayer(playerid,Intro[8]);
TextDrawShowForPlayer(playerid,Intro[9]);
TextDrawShowForPlayer(playerid,Intro[10]);
TextDrawShowForPlayer(playerid,Intro[11]);
TextDrawShowForPlayer(playerid,Intro[12]);
TextDrawShowForPlayer(playerid,Intro[13]);
TextDrawShowForPlayer(playerid,Intro[14]);
TextDrawShowForPlayer(playerid,Version[0]);

}


public OnPlayerDisconnect(playerid, reason)
{
ClearAnimations(playerid); //to stop the animation
return 1;
}

public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid,Intro[0]);
TextDrawHideForPlayer(playerid,Intro[1]);
TextDrawHideForPlayer(playerid,Intro[2]);
TextDrawHideForPlayer(playerid,Intro[3]);
TextDrawHideForPlayer(playerid,Intro[4]);
TextDrawHideForPlayer(playerid,Intro[5]);
TextDrawHideForPlayer(playerid,Intro[6]);
TextDrawHideForPlayer(playerid,Intro[7]);
TextDrawHideForPlayer(playerid,Intro[8]);
TextDrawHideForPlayer(playerid,Intro[9]);
TextDrawHideForPlayer(playerid,Intro[10]);
TextDrawHideForPlayer(playerid,Intro[11]);
TextDrawHideForPlayer(playerid,Intro[12]);
TextDrawHideForPlayer(playerid,Intro[13]);
TextDrawHideForPlayer(playerid,Intro[14]);
return 1;
}


When i start the server it all works. But the textdraw will not disapear untill player spawns. how do i code this so it disapears in 10 seconds then you are brought to class selection? like crazybobs server intro for example? Thanks in advance.
Reply


Messages In This Thread
Textdraw Intro - by aceisnice - 04.06.2016, 23:26
Re: Textdraw Intro - by WhiteGhost - 04.06.2016, 23:44
Re: Textdraw Intro - by aceisnice - 04.06.2016, 23:46
Re: Textdraw Intro - by Dayrion - 04.06.2016, 23:55
Re: Textdraw Intro - by iShawn - 05.06.2016, 00:01
Re: Textdraw Intro - by WhiteGhost - 05.06.2016, 00:03
Re: Textdraw Intro - by aceisnice - 05.06.2016, 00:04
Re: Textdraw Intro - by iShawn - 05.06.2016, 00:06
Re: Textdraw Intro - by WhiteGhost - 05.06.2016, 00:09
Re: Textdraw Intro - by aceisnice - 05.06.2016, 00:10
Re: Textdraw Intro - by aceisnice - 05.06.2016, 00:59
Re: Textdraw Intro - by iShawn - 05.06.2016, 01:04
Re: Textdraw Intro - by aceisnice - 05.06.2016, 01:20
Re: Textdraw Intro - by aceisnice - 05.06.2016, 01:22
Re: Textdraw Intro - by Dayrion - 05.06.2016, 01:27
Re: Textdraw Intro - by aceisnice - 05.06.2016, 01:35
Re: Textdraw Intro - by aceisnice - 05.06.2016, 02:00
Re: Textdraw Intro - by Dayrion - 05.06.2016, 10:37
Re: Textdraw Intro - by iggy1 - 05.06.2016, 10:50
Re: Textdraw Intro - by aceisnice - 06.06.2016, 22:31
Re: Textdraw Intro - by aceisnice - 07.06.2016, 07:40
Re: Textdraw Intro - by aceisnice - 07.06.2016, 09:11
Re: Textdraw Intro - by aceisnice - 08.06.2016, 05:59
Re: Textdraw Intro - by aceisnice - 08.06.2016, 23:01

Forum Jump:


Users browsing this thread: 2 Guest(s)