Need Help
#1

Hello!
I made a settimer.In which it will show a message in a fixed time.
Look at this script below..
pawn Код:
SetTimer("Red",1000,true);
pawn Код:
forward Red();
public Red()
{
    new playerid;
    SendClientMessage(playerid,RED,"One second has passed");
}
I want to set that message to a textdraw.Is it possible? If yes ,then how?
Reply
#2

I think this could help you:

https://sampwiki.blast.hk/wiki/SetTimerEx
Reply
#3

You must create the TextDraw
at the begin of the script
Код:
new Text:TextDraw
So at OnGameModeInIt you have to create:
Код:
TextDraw = TextDrawCreate(x,y,"text");
SetTimer("Red",1000,true);
and down
Код:
 forward Red();
public Red()
{
TextDrawShowForAll(TextDraw);
}
if you want to make the textdraw to dissapear write
Код:
HideTextDrawForAll(TextDraw);
Reply
#4

Sozz. Read it wrong.
Reply
#5

so which one i should do?
Reply
#6

show me an example please
Reply
#7

https://sampwiki.blast.hk/wiki/TextDrawCreate
Reply
#8

Read the wise wikipedia.
Reply
#9

i know how to make a textdraw
Reply
#10

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
i know how to make a textdraw
Then what is the purpose of this thread, Mr. KnowItAll?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)