[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


Messages In This Thread
TextDrawInput - by Drake1994 - 06.03.2012, 17:26
Re: TextDrawInput - by System64 - 06.03.2012, 17:31
Re: TextDrawInput - by Drake1994 - 06.03.2012, 17:32
Re: TextDrawInput - by System64 - 06.03.2012, 17:40
Re: TextDrawInput - by iTorran - 06.03.2012, 17:54
Re: TextDrawInput - by wups - 06.03.2012, 18:37

Forum Jump:


Users browsing this thread: 2 Guest(s)