Blackscreen textdraw
#1

i need blackscreen textdraw during when player is registering
Reply
#2

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

Make it on your own.
Reply
#3

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!
Reply
#4

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 ?
Reply
#5

Maybe, you can use this

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

how to stream *******
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)