Textdraw cmd - 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 cmd (
/showthread.php?tid=511302)
Textdraw cmd -
Ananisiki - 04.05.2014
How i can make something like this
Re: Textdraw cmd -
Aerotactics - 04.05.2014
OnPlayerCommandText(...)
ShowTextDrawForPlayer(textdraw1...)
ShowTextDrawForPlayer(textdraw2...)
ShowTextDrawForPlayer(textdraw3...)
ShowTextDrawForPlayer(textdraw4...)
ShowTextDrawForPlayer(textdraw5...)
Something along those lines
Re: Textdraw cmd -
Ananisiki - 04.05.2014
Excus me
Re: Textdraw cmd -
ShaneOvSina - 04.05.2014
You could look at this to get an idea how it's made couldn't you?
https://sampforum.blast.hk/showthread.php?pid=1815524#pid1815524
Re: Textdraw cmd -
Ananisiki - 04.05.2014
Not the same man....
Re: Textdraw cmd -
ShaneOvSina - 04.05.2014
I'm sure you could get a good idea how to make it by looking at it from the link i gave you.
Re: Textdraw cmd -
Smileys - 05.05.2014
1: create the textdraws with a textdraw editor.
2: make a command and when someone submits the cmd, it shows the twxtdraws.
3: under onplayerkeystatechange make a check for when someone presses LMB( KEY_FIRE I think ); and add there that if the textdraws are shown, hide them.
Re: Textdraw cmd -
Ananisiki - 05.05.2014
I know that, but how do i create the command itself, like if press 1 then it changed to ~r~OFF and so on
Re: Textdraw cmd -
K9IsGodly - 05.05.2014
Quote:
Originally Posted by Ananisiki
I know that, but how do i create the command itself, like if press 1 then it changed to ~r~OFF and so on
|
Use an if else statement:
if(Blahblah - in this case if they hit 1)
{
show the text draw that says off
}
else
{
continue showing the textdraw that says on
}
Just do something like that.
Edit: Of course before any of this is done you must make the textdraws in a textdraw editor.
Re: Textdraw cmd -
Ananisiki - 05.05.2014
How i can upgrade the textdraw instead of typeing that command again to see if its OFF or ON?
like
if its on and i turn it off, i have to type the command to see thats off