[Include] TextDrawInput - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] TextDrawInput (
/showthread.php?tid=323697)
TextDrawInput -
Drake1994 - 06.03.2012
TextDrawInput
Description
Hello everyone!
I want to release my new Include, which is the TextDrawInput. You can tune your scripts with this useful include.
Pictures
Wrote Text
Picture about Encryption:
Function
Код:
//with the title parameter you can give a title of the box. In pictures you see the follow: "Teszt Script"
//with the text parameter you can give some description of the box. In pictrues you see the under the "Teszt Script" title
//if you use the encryption parameter, the text will be replaced with star
//with boxtitle you can give a title of the white box (default "PASSWORD")
ShowTextDrawInputForPlayer(playerid, textid, title[], text[], bool:encryption, boxtitle[]);
Callback
Код:
public OnTextDrawResponse(playerid, textid, input[]);
Example for use
Код:
#define TEXT_TEST 1000
public OnPlayerSpawn(playerid)
{
ShowTextDrawInputForPlayer(playerid, TEXT_TEST, "Test", "Hello Player!");
return 1;
}
public OnTextDrawResponse(playerid, textid, input[])
{
if(textid == TEXT_TEST)
SendClientMessage(playerid, -1, input);
return 1;
}
Figyelem!
If you want to use it in FilterScript, you need to put this code:
Код:
#define FILTERSCRIPT
If you don't want to warning with text, that you reached the character limit, just use this code:
Код:
#define DONTUSE_ALERT
Download
SolidFiles
PasteBin
I get the TextDraw from the following script:
https://sampforum.blast.hk/showthread.php?tid=308561
Re: TextDrawInput -
System64 - 06.03.2012
hah nice, you took textdraws from my r&l script :P
Re: TextDrawInput -
Drake1994 - 06.03.2012
Yeah, i was a bit lazy. Why i need to create an already created TextDraw?
Re: TextDrawInput -
System64 - 06.03.2012
No you don't, everything is cool man, I'm not angry
Re: TextDrawInput -
iTorran - 06.03.2012
Nice work, although is it just for fun or it has some real usage?
Because uhm... ya' know.. there are dialogs..
Re: TextDrawInput -
wups - 06.03.2012
Quote:
Originally Posted by iTorran
Nice work, although is it just for fun or it has some real usage?
Because uhm... ya' know.. there are dialogs..
|
That.
The only use I can think of, is secure logins. That way key loggers won't work so good.