Dialogs like Menus for Textdraws
#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


Messages In This Thread
Dialogs like Menus for Textdraws - by willsuckformoney - 07.08.2010, 20:35
Re: Dialogs like Menus for Textdraws - by Hippotipus - 07.08.2010, 22:25
Re: Dialogs like Menus for Textdraws - by willsuckformoney - 07.08.2010, 22:29
Re: Dialogs like Menus for Textdraws - by Hippotipus - 07.08.2010, 22:31
Re: Dialogs like Menus for Textdraws - by Kar - 07.08.2010, 22:35
Re: Dialogs like Menus for Textdraws - by willsuckformoney - 07.08.2010, 22:42
Re: Dialogs like Menus for Textdraws - by Kar - 07.08.2010, 22:47
Re: Dialogs like Menus for Textdraws - by (.Aztec); - 07.08.2010, 23:12
Re: Dialogs like Menus for Textdraws - by willsuckformoney - 07.08.2010, 23:46

Forum Jump:


Users browsing this thread: 1 Guest(s)