[Include] TextDrawInput
#1

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

hah nice, you took textdraws from my r&l script :P
Reply
#3

Yeah, i was a bit lazy. Why i need to create an already created TextDraw?
Reply
#4

No you don't, everything is cool man, I'm not angry
Reply
#5

Nice work, although is it just for fun or it has some real usage?
Because uhm... ya' know.. there are dialogs..
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)