How to show Textdraw1 up/down/Left/right of the Textdraw2? - 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)
+--- Thread: How to show Textdraw1 up/down/Left/right of the Textdraw2? (
/showthread.php?tid=659530)
How to show Textdraw1 up/down/Left/right of the Textdraw2? -
Alteh - 06.10.2018
For example, if Textdraw1 is active, show Textdraw2 up/down/Left/right of the Textdraw1.
its possible?
if there... They me examples?
Re: How to show Textdraw1 up/down/Left/right of the Textdraw2? -
Ciandlah - 06.10.2018
What so like having a textdraw in the middle and then having textdraw flick around that one?
Re: How to show Textdraw1 up/down/Left/right of the Textdraw2? -
Undef1ned - 06.10.2018
їThis?
PHP код:
new Slot_td[3];
ShowTextDraw()
{
if(!Slot_td[0]) //If slot "0" is not occupied
{
Slot_td[0] = true;
TextDrawShowForAll(Textdraw);
SetTimerEx("HideTextDraw", 5000, false, "d", 0);
}
else if(!Slot_td[1]) //If slot "0" is occupied and slot "1" is free.
{
Slot_td[1] = true;
TextDrawShowForAll(Textdraw1);
SetTimerEx("HideTextDraw", 5000, false, "d", 1);
}
else if(!Slot_td[2]) //If slots "0" and "1" are occupied.
{
Slot_td[2] = true;
TextDrawShowForAll(Textdraw2);
SetTimerEx("HideTextDraw", 5000, false, "d", 2);
}
return 1;
}
PHP код:
forward HideTextDraw(d);
public HideTextDraw(d)
{
Slot_td[d] = false;
switch(d)
{
case 0: TextDrawHideForAll(Textdraw);
case 1: TextDrawHideForAll(Textdraw1);
case 2: TextDrawHideForAll(Textdraw2);
}
return 1;
}