Blackscreen textdraw
#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


Messages In This Thread
Blackscreen textdraw - by FireWarrior101 - 04.10.2013, 03:45
Re: Blackscreen textdraw - by Sublime - 04.10.2013, 03:55
Re: Blackscreen textdraw - by Insulin - 04.10.2013, 08:06
Re: Blackscreen textdraw - by FireWarrior101 - 04.10.2013, 08:47
Re: Blackscreen textdraw - by Insulin - 04.10.2013, 09:58
Re: Blackscreen textdraw - by FireWarrior101 - 05.10.2013, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)