Whats wrong with this textdraws
#5

PHP код:
stock LoadLoginTextdraws()
{
    Empty = 
TextDrawCreate(816.000000, -121.000000" ");
    
TextDrawSetSelectable(Empty, 0);
    
TopBox TextDrawCreate(816.000000, -121.000000"_");
    
TextDrawBackgroundColor(TopBox255);
    
TextDrawFont(TopBox1);
    
TextDrawLetterSize(TopBox0.40999927.400001);
    
TextDrawColor(TopBox, -1);
    
TextDrawSetOutline(TopBox0);
    
TextDrawSetProportional(TopBox1);
    
TextDrawSetShadow(TopBox1);
    
TextDrawUseBox(TopBox1);
    
TextDrawBoxColor(TopBox255);
    
TextDrawTextSize(TopBox, -129.00000060.000000);
    
TextDrawSetSelectable(TopBox0);
    
BotBox TextDrawCreate(816.000000350.000000"_");
    
TextDrawBackgroundColor(BotBox255);
    
TextDrawFont(BotBox1);
    
TextDrawLetterSize(BotBox0.40999927.400001);
    
TextDrawColor(BotBox255);
    
TextDrawSetOutline(BotBox0);
    
TextDrawSetProportional(BotBox1);
    
TextDrawSetShadow(BotBox1);
    
TextDrawUseBox(BotBox1);
    
TextDrawBoxColor(BotBox255);
    
TextDrawTextSize(BotBox, -129.00000060.000000);
    
TextDrawSetSelectable(BotBox0);
    
TopLine TextDrawCreate(730.000000130.000000"_");
    
TextDrawBackgroundColor(TopLine255);
    
TextDrawFont(TopLine1);
    
TextDrawLetterSize(TopLine0.5299990.599999);
    
TextDrawColor(TopLine, -1);
    
TextDrawSetOutline(TopLine0);
    
TextDrawSetProportional(TopLine1);
    
TextDrawSetShadow(TopLine1);
    
TextDrawUseBox(TopLine1);
    
TextDrawBoxColor(TopLine226554568);
    
TextDrawTextSize(TopLine, -205.0000000.000000);
    
TextDrawSetSelectable(TopLine0);
    
BotLine TextDrawCreate(730.000000340.000000"_");
    
TextDrawBackgroundColor(BotLine255);
    
TextDrawFont(BotLine1);
    
TextDrawLetterSize(BotLine0.5299990.599999);
    
TextDrawColor(BotLine, -1);
    
TextDrawSetOutline(BotLine0);
    
TextDrawSetProportional(BotLine1);
    
TextDrawSetShadow(BotLine1);
    
TextDrawUseBox(BotLine1);
    
TextDrawBoxColor(BotLine226554568);
    
TextDrawTextSize(BotLine, -205.0000000.000000);
    
TextDrawSetSelectable(BotLine0);
    
ServerCreator TextDrawCreate(225.000000102.000000"OT: FeRRum[Scripter]");
    
TextDrawBackgroundColor(ServerCreator255);
    
TextDrawFont(ServerCreator1);
    
TextDrawLetterSize(ServerCreator0.5000001.000000);
    
TextDrawColor(ServerCreator, -16776961);
    
TextDrawSetOutline(ServerCreator0);
    
TextDrawSetProportional(ServerCreator1);
    
TextDrawSetShadow(ServerCreator1);
    
TextDrawSetSelectable(ServerCreator0);
    
ServerName TextDrawCreate(97.00000035.000000"BG] Black Bull Drift Gaming ]0.3.7");
    
TextDrawBackgroundColor(ServerName255);
    
TextDrawFont(ServerName2);
    
TextDrawLetterSize(ServerName0.6000004.000000);
    
TextDrawColor(ServerName, -1);
    
TextDrawSetOutline(ServerName1);
    
TextDrawSetProportional(ServerName1);
    
TextDrawSetSelectable(ServerName0);
    
ServerStars TextDrawCreate(198.00000080.000000"]]]]]]]]]]]]]]");
    
TextDrawBackgroundColor(ServerStars255);
    
TextDrawFont(ServerStars2);
    
TextDrawLetterSize(ServerStars0.5000001.000000);
    
TextDrawColor(ServerStars16711935);
    
TextDrawSetOutline(ServerStars0);
    
TextDrawSetProportional(ServerStars1);
    
TextDrawSetShadow(ServerStars1);
    
TextDrawSetSelectable(ServerStars0);
    
ServerWeb TextDrawCreate(239.000000375.000000"BB-GAMING.eu");
    
TextDrawBackgroundColor(ServerWeb255);
    
TextDrawFont(ServerWeb2);
    
TextDrawLetterSize(ServerWeb0.5000003.099998);
    
TextDrawColor(ServerWeb1009505736);
    
TextDrawSetOutline(ServerWeb1);
    
TextDrawSetProportional(ServerWeb1);
    
TextDrawSetSelectable(ServerWeb0);
    return 
1;
}
stock ShowLoginTextdraws(playerid)
{
    
TextDrawShowForPlayer(playeridTopBox);
    
TextDrawShowForPlayer(playeridBotBox);
    
TextDrawShowForPlayer(playeridTopLine);
    
TextDrawShowForPlayer(playeridBotLine);
    
TextDrawShowForPlayer(playeridServerCreator);
    
TextDrawShowForPlayer(playeridServerName);
    
TextDrawShowForPlayer(playeridServerStars);
    
TextDrawShowForPlayer(playeridServerWeb);
    return 
1;
}
stock HideLoginTextdraws(playerid)
{
    
TextDrawHideForPlayer(playeridTopBox);
    
TextDrawHideForPlayer(playeridBotBox);
    
TextDrawHideForPlayer(playeridTopLine);
    
TextDrawHideForPlayer(playeridBotLine);
    
TextDrawHideForPlayer(playeridServerCreator);
    
TextDrawHideForPlayer(playeridServerName);
    
TextDrawHideForPlayer(playeridServerStars);
    
TextDrawHideForPlayer(playeridServerWeb);
    return 
1;
}
stock DestroyLoginTextdraws()
{
    
TextDrawDestroy(TopBox);
    
TextDrawDestroy(BotBox);
    
TextDrawDestroy(TopLine);
    
TextDrawDestroy(BotLine);
    
TextDrawDestroy(ServerCreator);
    
TextDrawDestroy(ServerName);
    
TextDrawDestroy(ServerStars);
    
TextDrawDestroy(ServerWeb);
    return 
1;

This my code and I'm using name TopBox I'm not using another TopBox and its only bug my first textdraw. For that I created empty textdraw. I'm using this stocks under OnGameModeInit, OnGameModeExit, OnPlayerConnect
Reply


Messages In This Thread
Whats wrong with this textdraws - by RenSoprano - 19.12.2015, 07:08
Re: Whats wrong with this textdraws - by prineside - 19.12.2015, 12:02
Re: Whats wrong with this textdraws - by RenSoprano - 19.12.2015, 21:16
Re: Whats wrong with this textdraws - by SickAttack - 19.12.2015, 22:18
Re: Whats wrong with this textdraws - by RenSoprano - 20.12.2015, 07:26

Forum Jump:


Users browsing this thread: 4 Guest(s)