help with textdraw
#1

when i go on server it comes up as date and as big back box round it from where it starts to the other side of the screen
and i want the box at all just the box with my website address in it

here all of the code
Код:
#include <a_samp>

new Text:Textdraw1;

public OnFilterScriptInit()
{
	// Create the textdraws:
	Textdraw1 = TextDrawCreate(5.000000, 431.000000, "WWW.WDMCLAN.TK");
	TextDrawBackgroundColor(Textdraw1, 255);
	TextDrawFont(Textdraw1, 2);
	TextDrawLetterSize(Textdraw1, 0.500000, 1.700000);
	TextDrawColor(Textdraw1, 65535);
	TextDrawSetOutline(Textdraw1, 0);
	TextDrawSetProportional(Textdraw1, 1);
	TextDrawSetShadow(Textdraw1, 1);
	return 1;
}

public OnPlayerConnect(playerid)
{
	TextDrawShowForPlayer(playerid, Textdraw1);
	return 1;
}
Reply
#2

How about you do this:

on top:
Код:
forward Textdraw(playerid);
new callback:
pawn Код:
public Textdraw(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw1);
return 1;
}
Then in the OnPlayerconnect callback:
pawn Код:
SetTimer("Textdraw", *time in ms*, 0);
Untested
Reply
#3

no did not work this is what looks like

http://i47.tinypic.com/15y91jp.png

the time names to be the website address and no black box
Reply
#4

How did you get this:

pawn Код:
Textdraw1 = TextDrawCreate(5.000000, 431.000000, "http://WWW.WDMCLAN.TK[url=http://]");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 2);
    TextDrawLetterSize(Textdraw1, 0.500000, 1.700000);
    TextDrawColor(Textdraw1, 65535);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetShadow(Textdraw1, 1);
I assume with Text Draw Editor? If not, search it at filterscripts.
Reply
#5

ye i used one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)