Very quick question, about textdraws - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Very quick question, about textdraws (
/showthread.php?tid=207814)
Very quick question, about textdraws -
admantis - 07.01.2011
Hello, I have a question. It's basically if this will work in textdraw to make it in different colors.
pawn Код:
TextDrawSetString(Textdraw0,"~p~this code is purple ~b~and this blue");
If that wouldn't work, how I can do it.. ? I know how to set a color for a textdraw, but I want different colors for different letters like..
If you spotted a cheater report him at www.sfh.net
I hope you understand
Re: Very quick question, about textdraws -
Souvlaki - 07.01.2011
Ehm it works on TextDrawCreate
pawn Код:
TextDrawCreate(18.000000, 421.000000, "Break~b~d~w~own");
so I guess It will.
http://images.breakdown-rp.net/a1-mp-006.png
Re: Very quick question, about textdraws -
admantis - 07.01.2011
pawn Код:
public TextdrawChange()
{
new new_txt = random(6);
switch(new_txt)
{
case 0: TextDrawSetString(Textdraw0,"You are playing xxxxxxxxxxx");
case 1: TextDrawSetString(Textdraw0,"Spotted a cheater? Use /report to report him!");
case 2: TextDrawSetString(Textdraw0,"Are you lost? Use the command /help for common commands");
case 3: TextDrawSetString(Textdraw0,"Remember to donate to keep the server alive!");
case 4: TextDrawSetString(Textdraw0,"Do not ask administrator status, money or permissons!");
case 5: TextDrawSetString(Textdraw0,"Remember to always follow rules of the server!");
}
}
Will that follow the same syntax?
Re: Very quick question, about textdraws -
Souvlaki - 07.01.2011
Quote:
Originally Posted by admantis
pawn Код:
public TextdrawChange() { new new_txt = random(6); switch(new_txt) { case 0: TextDrawSetString(Textdraw0,"You are playing xxxxxxxxxxx"); case 1: TextDrawSetString(Textdraw0,"Spotted a cheater? Use /report to report him!"); case 2: TextDrawSetString(Textdraw0,"Are you lost? Use the command /help for common commands"); case 3: TextDrawSetString(Textdraw0,"Remember to donate to keep the server alive!"); case 4: TextDrawSetString(Textdraw0,"Do not ask administrator status, money or permissons!"); case 5: TextDrawSetString(Textdraw0,"Remember to always follow rules of the server!"); } }
Will that follow the same syntax?
|
Yes it will, I tested this one
pawn Код:
function TextdrawChange()
{
new new_txt = random(6);
switch(new_txt)
{
case 0: TextDrawSetString(Textdraw0,"You are playing xxx~b~xxxx~w~xxxx");
case 1: TextDrawSetString(Textdraw0,"Spotted a ~r~cheater? Use /~b~report to report him!");
case 2: TextDrawSetString(Textdraw0,"Are you~b~ lost? Use the command /help for common commands");
case 3: TextDrawSetString(Textdraw0,"Remember to donate to keep the server alive!");
case 4: TextDrawSetString(Textdraw0,"Do not ask administrator~b~ status, money or permissons!");
case 5: TextDrawSetString(Textdraw0,"Remember to always ~b~follow rules of the server!");
}
}
http://images.breakdown-rp.net/a1-mp-007.png
Re: Very quick question, about textdraws -
admantis - 07.01.2011
Ahhh.. okay, thank you, i think that's all. Thanks for your time