Random 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: Random TextDraws (
/showthread.php?tid=132674)
Random TextDraws -
DarkPower - 08.03.2010
Hi, i know how to make random messages in chat but can anybody give me example for random textdraws, i really need them, tnx
Re: Random TextDraws -
DarkPower - 09.03.2010
BUMP
Re: Random TextDraws -
aircombat - 09.03.2010
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
Re: Random TextDraws -
Martin_M - 09.03.2010
The same as random messages, just use TextDrawSetString instead of SendClientMessage.
Re: Random TextDraws -
DarkPower - 09.03.2010
Quote:
Originally Posted by Martin_M
The same as random messages, just use TextDrawSetString instead of SendClientMessage.
|
I will try
Re: Random TextDraws -
DarkPower - 09.03.2010
nope, dosent work, can anyone can put little [TUT] how to make

?
Re: Random TextDraws -
Jeffry - 09.03.2010
Hope this is what you mean:
On Top
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
Re: Random TextDraws -
DarkPower - 09.03.2010
Yes i was look for that thank you alot