SA-MP Forums Archive
I can not get these textdraws workin! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I can not get these textdraws workin! (/showthread.php?tid=278872)

Pages: 1 2


I can not get these textdraws workin! - Azzeto - 24.08.2011

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.


Re: I can not get these textdraws workin! - Tigerbeast11 - 24.08.2011

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...


Re: I can not get these textdraws workin! - Wesley221 - 24.08.2011

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



Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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


Re: I can not get these textdraws workin! - Tigerbeast11 - 24.08.2011

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.


Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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


Re: I can not get these textdraws workin! - Tigerbeast11 - 24.08.2011

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?



Re: I can not get these textdraws workin! - Wesley221 - 24.08.2011

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


Re: I can not get these textdraws workin! - Gazmull - 24.08.2011

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


Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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.


Re: I can not get these textdraws workin! - Tigerbeast11 - 24.08.2011

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


Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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


Re: I can not get these textdraws workin! - Gazmull - 24.08.2011

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?


Re: I can not get these textdraws workin! - Toreno - 24.08.2011

pawn Code:
TextDrawShowForPlayer(playerid, WelcomeText);



Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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


Re: I can not get these textdraws workin! - Tigerbeast11 - 24.08.2011

try OnPlayerSpawn


Re: I can not get these textdraws workin! - Toreno - 24.08.2011

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;
}



Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

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


Re: I can not get these textdraws workin! - Toreno - 24.08.2011

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");



Re: I can not get these textdraws workin! - Azzeto - 24.08.2011

@toreno that didnt work either