Interactive Textdraw - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interactive Textdraw (
/showthread.php?tid=57405)
Interactive Textdraw -
Rome101 - 07.12.2008
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.
Re: Interactive Textdraw -
allong - 05.04.2009
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;
}