06.03.2012, 17:26
TextDrawInput
DescriptionHello everyone!
I want to release my new Include, which is the TextDrawInput. You can tune your scripts with this useful include.
Pictures
![](/imageshack/img36/9963/samp034ax.png)
![](/imageshack/img831/5619/samp035jn.png)
![](/imageshack/img24/2024/samp036tg.png)
Wrote Text
![](/imageshack/img838/448/samp037qr.png)
Picture about Encryption:
![](/imageshack/img24/5429/samp038rf.png)
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[]);
Код:
public OnTextDrawResponse(playerid, textid, input[]);
Код:
#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; }
If you want to use it in FilterScript, you need to put this code:
Код:
#define FILTERSCRIPT
Код:
#define DONTUSE_ALERT
SolidFiles
PasteBin
I get the TextDraw from the following script:
https://sampforum.blast.hk/showthread.php?tid=308561