SA-MP Forums Archive
HOW TO TEXTDRAW THIS? - 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: HOW TO TEXTDRAW THIS? (/showthread.php?tid=510003)



HOW TO TEXTDRAW THIS? - spykidz01 - 29.04.2014

title says all..

Код:
CMD:rules(playerid)
{
Rules(playerid);
return true;
}
i got one textdraw cmd in my gamemode, its like this

Код:
CMD:crules(playerid)
{
if(GetPVarInt(playerid, "COP") ==1 ) return 1;
TextDrawShowForPlayer(playerid, CopsRules0);
TextDrawShowForPlayer(playerid, CopsRules1);
TextDrawShowForPlayer(playerid, CopsRules2);
TextDrawShowForPlayer(playerid, CopsRules3);
TextDrawShowForPlayer(playerid, CopsRules4);
return true;
}



Re: HOW TO TEXTDRAW THIS? - VinPure - 29.04.2014

You can use https://sampforum.blast.hk/showthread.php?tid=117851
or https://sampforum.blast.hk/showthread.php?tid=376758


Re: HOW TO TEXTDRAW THIS? - spykidz01 - 29.04.2014

WOO THANKS BRO!!! +rep

**didnt notice that it has filterscript :O


Re: HOW TO TEXTDRAW THIS? - VinPure - 29.04.2014

You can Create new filterscript and copy code file TD_blbla.pwn for IpleoMax,
EX: put code
after include
Quote:

new Text:Textdraw0;

and put
Quote:

Textdraw0 = TextDrawCreate(641.500000, 1.500000, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 16.047777);
TextDrawTextSize(Textdraw0, -2.000000, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);

in Ongamemodeinit()
And
Quote:

CMD:blaBla(playerid,params[])
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}




Re: HOW TO TEXTDRAW THIS? - spykidz01 - 29.04.2014

ok bro! i'll try it, but first i will back up my samp files, coz im noob scripter :S maybe there will be errors occured


Re: HOW TO TEXTDRAW THIS? - VinPure - 29.04.2014

Yes, save the front is essential, it can happen error