I can not get these textdraws workin!
#1

My previous thread some one said to use a filterscript, I dont like using filterscripts and I WILL NOT use them on my gamemode, But so far
pawn Code:
new Text:WelcomeText;
OnGameModeInit
pawn Code:
WelcomeText = TextDrawCreate(246 ,456 , "[SDK]FreeRoam scripted by [SDK]Azzeto");
OnPlayerconnect
pawn Code:
TextDrawShowForPlayer(playerid,Text:WelcomeText);
Iv tried many many things! Can NOT get them to work and its getting irritating.
Reply
#2

Quote:
Originally Posted by Azzeto
View Post
My previous thread some one said to use a filterscript, I dont like using filterscripts and I WILL NOT use them on my gamemode, But so far
pawn Code:
new Text:WelcomeText;
OnGameModeInit
pawn Code:
WelcomeText = TextDrawCreate(246 ,456 , "[SDK]FreeRoam scripted by [SDK]Azzeto");
OnPlayerconnect
pawn Code:
TextDrawShowForPlayer(playerid,Text:WelcomeText);
Iv tried many many things! Can NOT get them to work and its getting irritating.
Show me the textdraw properties...
Reply
#3

Try to place this in OnPlayerSpawn
pawn Code:
TextDrawShowForPlayer(playerid,Text:WelcomeText);
Reply
#4

@Wesley, doesn't work, and @Tiger, all I have for textdraws is whats posted
Reply
#5

Well, try adding some properties like these:
pawn Code:
TextDrawAlignment(Timer,2);
    TextDrawBackgroundColor(Timer,0x000000ff);
    TextDrawFont(Timer,3);
    TextDrawLetterSize(Timer,0.499999,2.000000);
    TextDrawColor(Timer,0xffffffff);
    TextDrawSetOutline(Timer,1);
    TextDrawSetProportional(Timer,1);
    TextDrawSetShadow(Timer,1);
DO NOT COPY & PASTE.
Reply
#6

Is there anyway you could explain what that is, and what they do? I'v never created a textdraw before
Reply
#7

They are kind of self explanatory:

pawn Code:
TextDrawAlignment(Timer,2); //Type of alignment
    TextDrawBackgroundColor(Timer,0x000000ff); //BAckground colour
    TextDrawFont(Timer,3); //Letter style
    TextDrawLetterSize(Timer,0.499999,2.000000); //Sizes
    TextDrawColor(Timer,0xffffffff); //Colour
    TextDrawSetOutline(Timer,1); //Outline, yes or no?
    TextDrawSetProportional(Timer,1); //Proportional, yes or no?
    TextDrawSetShadow(Timer,1); //Shadow, yes or no?
Reply
#8

Use the textdraw editor they sended you in your previous topic. Then just copy & paste the things it made in the filterscript to your gamemode. No need to use it in a filterscript
Reply
#9

It lacks font, size, color, etc. so you make textdraw confusing :S.
Reply
#10

Here are my properties now
pawn Code:
TextDrawFont(WelcomeText , 1);
TextDrawLetterSize(WelcomeText , 0.6, 4.2);
TextDrawColor(WelcomeText , 0x0066ffFF);
TextDrawSetOutline(WelcomeText , false);
TextDrawSetProportional(WelcomeText , true);
TextDrawSetShadow(WelcomeText , 3);
Got them using http://bsndesign.webs.com/tde.htm
and I posted them under create textdraw on the ongamemodeinit and put showtextdrawforplayer under onplayerconnect, did /rcon gmx and the server restarted but I still do not see the textdraw.
Reply
#11

https://sampwiki.blast.hk/wiki/TextDrawCreate Read this and the links underneath it about textdraws.
Reply
#12

I'v read that, I'v done everything and its not showing. I even have the properties for the textdraw set.
Reply
#13

Quote:
Originally Posted by Azzeto
View Post
Here are my properties now
pawn Code:
TextDrawFont(WelcomeText , 1);
TextDrawLetterSize(WelcomeText , 0.6, 4.2);
TextDrawColor(WelcomeText , 0x0066ffFF);
TextDrawSetOutline(WelcomeText , false);
TextDrawSetProportional(WelcomeText , true);
TextDrawSetShadow(WelcomeText , 3);
Got them using http://bsndesign.webs.com/tde.htm
and I posted them under create textdraw on the ongamemodeinit and put showtextdrawforplayer under onplayerconnect, did /rcon gmx and the server restarted but I still do not see the textdraw.
That webtool isn't accurate. Try the textdraweditor FS?
Reply
#14

pawn Code:
TextDrawShowForPlayer(playerid, WelcomeText);
Reply
#15

@toreno, id put that under onplayerconnect, right? Or onplayerspawn?
Reply
#16

try OnPlayerSpawn
Reply
#17

pawn Code:
new Text:WelcomeText;
pawn Code:
public OnPlayerConnect(playerid)
{
    WelcomeText = TextDrawCreate(246 ,456 , "[SDK]FreeRoam scripted by [SDK]Azzeto");
    return 1;
}
pawn Code:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, WelcomeText);
    return 1;
}
Reply
#18

Didnt work toreno -.-' Ill just use the filterscript, anyone know where the stat things save
Reply
#19

That should work perfectly, this must be your textdraw coordinates.
Maybe try using these two coordinates, otherwise... I can't see what's wrong.
pawn Code:
WelcomeText = TextDrawCreate(240.0, 580.0, "[SDK]FreeRoam scripted by [SDK]Azzeto");
Reply
#20

@toreno that didnt work either
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)