Very quick question, about textdraws
#1

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
Reply
#2

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
Reply
#3

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?
Reply
#4

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
Reply
#5

Ahhh.. okay, thank you, i think that's all. Thanks for your time
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)