how to textdraw countdown to the bottom??
#1

how to textdraw countdown to the bottom??
My code: http://pastebin.com/fNcta2RV
no place to edit TextDraw
I need your help me
Reply
#2

well you can do that with this like

~n~ this means new line ~n~

try this

pawn Код:
//Commands//
CMD:countdown(playerid,params[])
{
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x, y, z);
        if(Count == 0)
        {
                SetTimer("Counting",1000,false);
                }
                else
                {
                        SendClientMessage(playerid, 0xFF0000FF,"Someone else has already started a Countdown!");
        }
        if(IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z))
        {
                TogglePlayerControllable(playerid, 0);
        }
        return 1;
}
public Counting(playerid)
{
        Count = 1;
        GameTextForAll("~r~3",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("Counting2",1000,false);
        return 1;
}
public Counting2(playerid)
{
        Count = 1;
        GameTextForAll("~n~~n~~n~~y~2",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("Counting1",1000,false);
        return 1;
}
public Counting1(playerid)
{
        Count = 1;
        GameTextForAll("~n~~n~~n~~b~1",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("CountingGO",1000,false);
        return 1;
}
public CountingGO(playerid)
{
        Count = 0;
    PlayerPlaySound(playerid, 1057,0,0,0);
        GameTextForAll("~n~~n~~n~~g~GO!!!",1000,6);
    TogglePlayerControllable(playerid, 1);
        return 1;
}
Reply
#3

Quote:
Originally Posted by Namer
Посмотреть сообщение
well you can do that with this like

~n~ this means new line ~n~

try this

pawn Код:
//Commands//
CMD:countdown(playerid,params[])
{
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x, y, z);
        if(Count == 0)
        {
                SetTimer("Counting",1000,false);
                }
                else
                {
                        SendClientMessage(playerid, 0xFF0000FF,"Someone else has already started a Countdown!");
        }
        if(IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z))
        {
                TogglePlayerControllable(playerid, 0);
        }
        return 1;
}
public Counting(playerid)
{
        Count = 1;
        GameTextForAll("~r~3",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("Counting2",1000,false);
        return 1;
}
public Counting2(playerid)
{
        Count = 1;
        GameTextForAll("~n~~n~~n~~y~2",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("Counting1",1000,false);
        return 1;
}
public Counting1(playerid)
{
        Count = 1;
        GameTextForAll("~n~~n~~n~~b~1",1000,6);
    PlayerPlaySound(playerid, 1056,0,0,0);
        SetTimer("CountingGO",1000,false);
        return 1;
}
public CountingGO(playerid)
{
        Count = 0;
    PlayerPlaySound(playerid, 1057,0,0,0);
        GameTextForAll("~n~~n~~n~~g~GO!!!",1000,6);
    TogglePlayerControllable(playerid, 1);
        return 1;
}
What you edit lines, I see the same
OK tks this work
Reply
#4

" GameTextForAll " i edited that

look on urs then mine

yours
pawn Код:
GameTextForAll("~y~2",1000,6);
mine
pawn Код:
GameTextForAll("~n~~n~~n~~y~2",1000,6);
Reply
#5

Quote:
Originally Posted by Namer
Посмотреть сообщение
" GameTextForAll " i edited that

look on urs then mine

yours
pawn Код:
GameTextForAll("~y~2",1000,6);
mine
pawn Код:
GameTextForAll("~n~~n~~n~~y~2",1000,6);
Thanks this work
Reply
#6

Quote:
Originally Posted by Namer
Посмотреть сообщение
" GameTextForAll " i edited that

look on urs then mine

yours
pawn Код:
GameTextForAll("~y~2",1000,6);
mine
pawn Код:
GameTextForAll("~n~~n~~n~~y~2",1000,6);

What this how to fix
Reply
#7

try this line --
pawn Код:
GameTextForAll(" ~n~  ~n~  ~n~  ~y~2",1000,6);//note the space
Reply
#8

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
try this line --
pawn Код:
GameTextForAll(" ~n~  ~n~  ~n~  ~y~2",1000,6);//note the space
Thanks bro +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)