Interactive Textdraw
#1

Is there a possibility to make a textdraw using both the Diploma game text and an input box?
I mean, an interface where the player can type in a number and see it being typed in in the Textdraw box.

Thanks.
Reply
#2

Probably the only way possible is if you use GetPlayerKeys (https://sampwiki.blast.hk/wiki/GetPlayerKeys) to retrieve the buttons that the user is pushing but I'm not sure if you can check for all the numbers. Either that or you could use OnPlayerText:
Код:
public OnPlayerText(playerid, text[])
{
  if(using_form[playerid]){ //If the player is typing in a form
  form_text = text // Add what he said into the box
  return 0;  // Return 0 (Don't actually send the text to other players)
  }
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)