04.10.2013, 03:45
i need blackscreen textdraw during when player is registering
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!
}
public OnPlayerConnect()
{
PlayAudioStreamForPlayer(playerid,"http://files.mboxdrive.com/100005608868005/Untitled.mp3");
}
public OnPlayerSpawn()
{
StopAudioStreamForPlayer(playerid);
}