Dialogs like Menus for Textdraws
#1

Anyone know how to make a textdraw like a menu or dialog like something like this


1. blalba
2. blabla
3. blabla
4. blabla
5. blabla


and when you type in a number it gives you something or sends you a message anyone get what i mean?
Reply
#2

Try this, it might help http://forum.sa-mp.com/showthread.ph...ighlight=rules
Reply
#3

Thanks for trying, but that's not what I wanted, you see i wanted to know how to make TextDraws like dialogs


1. blabla
2. blabla
3. blabla
4. blabla
5. blabla


when type in the number (1-5) something happens like what i assign to happen
Reply
#4

Oh sorry misread...Can't help you there it looks like im newer to pawno then you
Reply
#5

onplayertext..
Reply
#6

yeah that explains it kar -_- xD
Reply
#7

geez i'll get on xfire lmao
Reply
#8

At the top of your script:

pawn Код:
new TextDrawShown[MAX_PLAYERS][50];
pawn Код:
COMMAND:td(playerid, params[]) //Command for showing the textdraw.
{
ShowTextDrawForPlayer(playerid, TextDraw01);
TextDrawShown[playerid] = "TextDraw01";
return 1;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strcmp(TextDrawShown[playerid], "TextDraw01", true) == 0)
{
if(strcmp(text, "1", true) == 0)
{
//option 1.
TextDrawShown[playerid] = "None";
}
else if(strcmp(text, "2", true) == 0)
{
//option 2.
TextDrawShown[playerid] = "None";
}
}
return 1;
}
Something like that i'm assuming is what you wanted.
Reply
#9

tehe got it thanks guys xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)