SA-MP Forums Archive
Blackscreen textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Blackscreen textdraw (/showthread.php?tid=467595)



Blackscreen textdraw - FireWarrior101 - 04.10.2013

i need blackscreen textdraw during when player is registering



Re: Blackscreen textdraw - Sublime - 04.10.2013

https://sampforum.blast.hk/showthread.php?tid=442095

Make it on your own.


Re: Blackscreen textdraw - Insulin - 04.10.2013

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Don't be rude! Bro see this

pawn Код:
new Text:Textdraw0; // Defining on the top of the script

public OnGameModeInit
{
    // Black Textdraw
    Textdraw0 = TextDrawCreate(650.000000, 0.000000, "New Textdraw");
    TextDrawBackgroundColor(Textdraw0, 0);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.010000, 30.400001);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 0x000000C8);
}

public OnGameModeExit()
{
TextDrawHideForAll(Textdraw0); //Since Gamemode exitted we should hide this TD for all
TextDrawDestroy(Textdraw0);   ////Since Gamemode exitted we should destroy this TD for all
}

public OnPlayerConnect
{
TextDrawShowForPlayer(playerid, Textdraw0); //So we will start showing this textdraw when player is connecting! Can be removed if not needed!
}

public OnPlayerRequestClass(playerid, classid)
{
    TextDrawShowForPlayer(playerid, Textdraw0); //Showing the Textdraw whe nplayer requesting class, if u using dialog boxes for Classes. Can be removed if not needed and  TextDrawHideForPlayer(playerid, Textdraw0); should be added
}

public OnPlayerSpawn
{
TextDrawHideForPlayer(playerid, Textdraw0); If textdraw wasn't forced to hide OnPlayerRequestClass we should definately hide it OnPlayerSpawn! So dere we go, let's hide it!
}
Hope this helped you!


Re: Blackscreen textdraw - FireWarrior101 - 04.10.2013

thanks insulin i made it myself before but thanks still
Anyways do u know any good sounds that i can stream on Player login during register ?


Re: Blackscreen textdraw - Insulin - 04.10.2013

Maybe, you can use this

pawn Код:
public OnPlayerConnect()
{
PlayAudioStreamForPlayer(playerid,"http://files.mboxdrive.com/100005608868005/Untitled.mp3");
}
public OnPlayerSpawn()
{
StopAudioStreamForPlayer(playerid);
}



Re: Blackscreen textdraw - FireWarrior101 - 05.10.2013

how to stream *******