Textdraw cmd
#1

How i can make something like this


Reply
#2

OnPlayerCommandText(...)
ShowTextDrawForPlayer(textdraw1...)
ShowTextDrawForPlayer(textdraw2...)
ShowTextDrawForPlayer(textdraw3...)
ShowTextDrawForPlayer(textdraw4...)
ShowTextDrawForPlayer(textdraw5...)

Something along those lines
Reply
#3

Excus me
Reply
#4

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
Reply
#5

Not the same man....
Reply
#6

I'm sure you could get a good idea how to make it by looking at it from the link i gave you.
Reply
#7

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.
Reply
#8

I know that, but how do i create the command itself, like if press 1 then it changed to ~r~OFF and so on
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)