Dialogs like Menus for Textdraws - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialogs like Menus for Textdraws (
/showthread.php?tid=166204)
Dialogs like Menus for Textdraws -
willsuckformoney - 07.08.2010
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?
Re: Dialogs like Menus for Textdraws -
Hippotipus - 07.08.2010
Try this, it might help
http://forum.sa-mp.com/showthread.ph...ighlight=rules
Re: Dialogs like Menus for Textdraws -
willsuckformoney - 07.08.2010
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
Re: Dialogs like Menus for Textdraws -
Hippotipus - 07.08.2010
Oh sorry misread...Can't help you there it looks like im newer to pawno then you
Re: Dialogs like Menus for Textdraws -
Kar - 07.08.2010
onplayertext..
Re: Dialogs like Menus for Textdraws -
willsuckformoney - 07.08.2010
yeah that explains it kar -_- xD
Re: Dialogs like Menus for Textdraws -
Kar - 07.08.2010
geez i'll get on xfire lmao
Re: Dialogs like Menus for Textdraws -
(.Aztec); - 07.08.2010
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.
Re: Dialogs like Menus for Textdraws -
willsuckformoney - 07.08.2010
tehe got it thanks guys xD