textdraw help - 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: textdraw help (
/showthread.php?tid=305827)
textdraw help -
ThamburaaN - 24.12.2011
under OnGameModeInit
pawn Код:
Ann = TextDrawCreate(70.000000, 326.000000,"_");
TextDrawTextSize(Ann, 200.0, 200.0); // tried changing them but doesnt get big
TextDrawUseBox(Ann, 1);
TextDrawBoxColor(Ann, 0x00000076);
TextDrawAlignment(Ann, 2);
TextDrawBackgroundColor(Ann,0x000000FF);
TextDrawFont(Ann, 1);
TextDrawLetterSize(Ann, 0.3,1);
TextDrawColor(Ann, 0xffffffff);
TextDrawSetShadow(Ann, 1);
i put it under /cmds command.
pawn Код:
new newtext[41];
format(newtext, sizeof(newtext), "/cars - the list of cars ~n~ /teles - list of teles. ~n~ /help- Teach u How To play.");//, name);
TextDrawSetString(Ann, newtext);
TextDrawShowForAll(Ann);
the problem is i cant see all things i listed there for /cmds. its ending at /teles - li. i tried to make the box big but its not letting me .
also i want to make it like when i press LMB or capslock its should close.
Re: textdraw help -
Kar - 24.12.2011
pawn Код:
new newtext[85];
format(newtext, sizeof(newtext), "/cars - the list of cars ~n~ /teles - list of teles. ~n~ /help- Teach u How To play.");//, name);//string length was too little
TextDrawSetString(Ann, newtext);
TextDrawShowForAll(Ann);
Try that
Re: textdraw help -
ThamburaaN - 24.12.2011
ty. how to make it close when pressing LMB or capslock?
Re: textdraw help -
ZmaXy - 29.12.2011
OnPlayerKeyStateChange
pawn Код:
if (newkeys == KEY_FIRE)
{
TextDrawHideForAll(Ann);
//or
TextDrawHideForPlayer(Ann);
}
Try that...
Re: textdraw help -
ThamburaaN - 29.12.2011
how to define newkeys?
Re: textdraw help -
ZmaXy - 29.12.2011
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == KEY_FIRE)
{
TextDrawHideForAll(Ann);
//or
TextDrawHideForPlayer(Ann);
}