Random TextDraws
#1

Hi, i know how to make random messages in chat but can anybody give me example for random textdraws, i really need them, tnx
Reply
#2

BUMP
Reply
#3

i think u can make it same as u make the random messages but u have to use a timer to hide the textdraw .
________
Arizona Marijuana Dispensaries
Reply
#4

The same as random messages, just use TextDrawSetString instead of SendClientMessage.
Reply
#5

Quote:
Originally Posted by Martin_M
The same as random messages, just use TextDrawSetString instead of SendClientMessage.
I will try
Reply
#6

nope, dosent work, can anyone can put little [TUT] how to make?
Reply
#7

Hope this is what you mean:

On Top
pawn Code:
new Text:abc;
new msg;
OnGameModInit
pawn Code:
abc = TextDrawCreate(3.3750, 430.0, "/commands");
  TextDrawTextSize(abc,629.000000,2.000000);
  TextDrawAlignment(abc,0);
  TextDrawFont(abc,2);
  TextDrawLetterSize(abc,0.499999,1.399999);
  TextDrawColor(abc,0x00FF00FF);
  TextDrawSetOutline(abc,1);
  TextDrawSetProportional(abc,1);
  TextDrawSetShadow(abc,1);
  SetTimer("cmdsc",1500,true); // Messages changes every 1.5 sec
OnPlayerConnect
pawn Code:
TextDrawShowForPlayer(playerid, abc);
At the end
pawn Code:
forward cmdsc();
public cmdsc()
{
switch (msg)
  {
  case 0:  
    {
     new newtext[41];
     format(newtext, sizeof(newtext), "/help");
     TextDrawSetString(abc, newtext);  
     msg++;
    }
  case 1:
    {
     new newtext[41];
     format(newtext, sizeof(newtext), "/register");
     TextDrawSetString(abc, newtext);
     msg=0; // this must be the last!!!
    }

  }
}
Should work.
Hope I helped.


Jeffry
Reply
#8

Yes i was look for that thank you alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)